]> git.ipfire.org Git - thirdparty/git.git/commit - git-sh-setup.sh
i18n: fix misconversion in shell scripts
authorJunio C Hamano <gitster@pobox.com>
Tue, 20 Dec 2016 17:36:23 +0000 (09:36 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Dec 2016 17:36:23 +0000 (09:36 -0800)
commitacefe2be287b099886f1240bd1f5adfa66dbadee
tree5de1e456fac773cd31c74ac2efc9b2d06ad332d4
parent415c7dd026e4649bea48c35ccbe29d2fa8b69be5
i18n: fix misconversion in shell scripts

An earlier series that was merged at 2703572b3a ("Merge branch
'va/i18n-even-more'", 2016-07-13) failed to use $(eval_gettext
"string with \$variable interpolation") and instead used gettext in
a few places, and ended up showing the variable names in the
message, e.g.

    $ git submodule
    fatal: $program_name cannot be used without a working tree.

Catch these mistakes with

    $ git grep -n '[^_]gettext .*\\\$'

and fix them all to use eval_gettext instead.

Reported-by: Josh Bleecher Snyder
Acked-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh
git-sh-setup.sh