i18n: git-bisect echo + gettext messages

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 ddd7a7c2220692ca3b25173b635218736c76b271
1 file changed +12 -3
git-bisect.sh
+12 -3
@@ -36,7 +36,10 @@ _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
36
37 bisect_autostart() {
38 test -s "$GIT_DIR/BISECT_START" || {
39 - echo >&2 'You need to start by "git bisect start"'
39 + (
40 + gettext "You need to start by \"git bisect start\"" &&
41 + echo
42 + ) >&2
43 if test -t 0
44 then
45 echo >&2 -n 'Do you want me to do it for you [Y/n]? '
@@ -239,7 +242,10 @@ bisect_next_check() {
242 t,,good)
243 # have bad but not good. we could bisect although
244 # this is less optimum.
242 - echo >&2 'Warning: bisecting only with a bad commit.'
245 + (
246 + gettext "Warning: bisecting only with a bad commit." &&
247 + echo
248 + ) >&2
249 if test -t 0
250 then
251 printf >&2 'Are you sure [Y/n]? '
@@ -403,7 +409,10 @@ bisect_run () {
409
410 if sane_grep "first bad commit could be any of" "$GIT_DIR/BISECT_RUN" \
411 > /dev/null; then
406 - echo >&2 "bisect run cannot continue any more"
412 + (
413 + gettext "bisect run cannot continue any more" &&
414 + echo
415 + ) >&2
416 exit $res
417 fi
418