[PATCH 18/20] gettextize: git-am "Apply?" message
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Sep 7, 2010, 16:48 UTC
- Message-ID
- <1283878113-19533-9-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1283877955-19105-1-git-send-email-avarab@gmail.com>
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> --- git-am.sh | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/git-am.sh b/git-am.sh index 3403267..90f2a9d 100755 --- a/git-am.sh +++ b/git-am.sh @@ -684,7 +684,10 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."; ec echo "--------------------------" cat "$dotest/final-commit" echo "--------------------------" - printf "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all " + # TRANSLATORS: Make sure to include [y], [n], [e], [v] and [a] + # in your translation. The program will only accept English + # input at this point. + gettext "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all " read reply case "$reply" in [yY]*) action=yes ;;
-- 1.7.2.3.313.gcd15