i18n: git-am "Apply?" message
Make the "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all" message translatable, and leave a note in a TRANSLATORS comment explaining that translators have to preserve a mention of the y/n/e/v/a characters since the program will expect them, and not their localized equivalents. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
May 21, 2011 at 18:43 UTC
7a74d04a46eaa24aaea8080178520266d716e5ad
1 file changed
+4
-1
git-am.sh
+4
-1
@@ -703,7 +703,10 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."; ec
703
echo "--------------------------"
704
cat "$dotest/final-commit"
705
echo "--------------------------"
706
- printf "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all "
706
+ # TRANSLATORS: Make sure to include [y], [n], [e], [v] and [a]
707
+ # in your translation. The program will only accept English
708
+ # input at this point.
709
+ gettext "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all "
710
read reply
711
case "$reply" in
712
[yY]*) action=yes ;;