From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 13:30:42 +0000 (+0000) Subject: gettextize: git-bisect bisect_next_check "You need to" message X-Git-Tag: ko-pu~10^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8a36238be2d0ba230f200080de492c8a83413da2;p=git.git gettextize: 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 --- diff --git a/git-bisect.sh b/git-bisect.sh index b13012901..b5836dd53 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -255,15 +255,16 @@ bisect_next_check() { : bisect without good... ;; *) - THEN='' - test -s "$GIT_DIR/BISECT_START" || { - echo >&2 'You need to start by "git bisect start".' - THEN='then ' - } - echo >&2 'You '$THEN'need to give me at least one good' \ - 'and one bad revisions.' - echo >&2 '(You can use "git bisect bad" and' \ - '"git bisect good" for that.)' + + if test -s "$GIT_DIR/BISECT_START" + then + echo >&2 "$(gettext "You need to give me at least one good and one bad revisions. +(You can use \"git bisect bad\" and \"git bisect good\" for that.)")" + else + echo >&2 "$(gettext "You need to start by \"git bisect start\". +You then need to give me at least one good and one bad revisions. +(You can use \"git bisect bad\" and \"git bisect good\" for that.)")" + fi exit 1 ;; esac }