i18n: git-bisect bisect_run + $@ messages

Gettextize bisect_run messages that use the $@ variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. 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 0920925584f4a306daf723d1fbdf75c215755f09
1 file changed +7 -3
git-bisect.sh
+7 -3
@@ -380,14 +380,18 @@ bisect_run () {
380
381 while true
382 do
383 - echo "running $@"
383 + command="$@"
384 + eval_gettext "running \$command"; echo
385 "$@"
386 res=$?
387
388 # Check for really bad run error.
389 if [ $res -lt 0 -o $res -ge 128 ]; then
389 - echo >&2 "bisect run failed:"
390 - echo >&2 "exit code $res from '$@' is < 0 or >= 128"
390 + (
391 + eval_gettext "bisect run failed:
392 +exit code \$res from '\$command' is < 0 or >= 128" &&
393 + echo
394 + ) >&2
395 exit $res
396 fi
397