i18n: git-bisect [Y/n] messages
Gettextize the [Y/n] questions git-bisect presents, and leave a note in a TRANSLATORS comment explaining that translators have to preserve a mention of the Y/n 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:44 UTC
04de099622ff8b5481a383e76207b65cde9b5d1a
1 file changed
+8
-2
git-bisect.sh
+8
-2
@@ -42,7 +42,10 @@ bisect_autostart() {
42
) >&2
43
if test -t 0
44
then
45
- echo >&2 -n 'Do you want me to do it for you [Y/n]? '
45
+ # TRANSLATORS: Make sure to include [Y] and [n] in your
46
+ # translation. The program will only accept English input
47
+ # at this point.
48
+ gettext "Do you want me to do it for you [Y/n]? " >&2
49
read yesno
50
case "$yesno" in
51
[Nn]*)
@@ -248,7 +251,10 @@ bisect_next_check() {
251
) >&2
252
if test -t 0
253
then
251
- printf >&2 'Are you sure [Y/n]? '
254
+ # TRANSLATORS: Make sure to include [Y] and [n] in your
255
+ # translation. The program will only accept English input
256
+ # at this point.
257
+ gettext "Are you sure [Y/n]? " >&2
258
read yesno
259
case "$yesno" in [Nn]*) exit 1 ;; esac
260
fi