Skip to content

Commit be508d3

Browse files
avargitster
authored andcommitted
i18n: git-bisect bisect_next_check "You need to" message
Gettextize the "You need to start by" message in bisect_next_check. This message assembled English output by hand so it needed to be split up to make it translatable. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 04de099 commit be508d3

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

git-bisect.sh

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,22 @@ bisect_next_check() {
261261
: bisect without good...
262262
;;
263263
*)
264-
THEN=''
265-
test -s "$GIT_DIR/BISECT_START" || {
266-
echo >&2 'You need to start by "git bisect start".'
267-
THEN='then '
268-
}
269-
echo >&2 'You '$THEN'need to give me at least one good' \
270-
'and one bad revisions.'
271-
echo >&2 '(You can use "git bisect bad" and' \
272-
'"git bisect good" for that.)'
264+
265+
if test -s "$GIT_DIR/BISECT_START"
266+
then
267+
(
268+
gettext "You need to give me at least one good and one bad revisions.
269+
(You can use \"git bisect bad\" and \"git bisect good\" for that.)" &&
270+
echo
271+
) >&2
272+
else
273+
(
274+
gettext "You need to start by \"git bisect start\".
275+
You then need to give me at least one good and one bad revisions.
276+
(You can use \"git bisect bad\" and \"git bisect good\" for that.)" &&
277+
echo
278+
) >&2
279+
fi
273280
exit 1 ;;
274281
esac
275282
}

0 commit comments

Comments
 (0)