Skip to content

Commit ddd7a7c

Browse files
avargitster
authored andcommitted
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>
1 parent d0238a8 commit ddd7a7c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

git-bisect.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
3636

3737
bisect_autostart() {
3838
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
4043
if test -t 0
4144
then
4245
echo >&2 -n 'Do you want me to do it for you [Y/n]? '
@@ -239,7 +242,10 @@ bisect_next_check() {
239242
t,,good)
240243
# have bad but not good. we could bisect although
241244
# 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
243249
if test -t 0
244250
then
245251
printf >&2 'Are you sure [Y/n]? '
@@ -403,7 +409,10 @@ bisect_run () {
403409

404410
if sane_grep "first bad commit could be any of" "$GIT_DIR/BISECT_RUN" \
405411
> /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
407416
exit $res
408417
fi
409418

0 commit comments

Comments
 (0)