i18n: git-bisect bisect_replay + $1 messages

Gettextize bisect_replay messages that use the $1 variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Since I was doing that anyway I've changed all other uses of $1 variable to use the alias variable for clarity. 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 55a9fc80438744eb09d2146a1c85798fbdd27764
1 file changed +4 -3
git-bisect.sh
+4 -3
@@ -354,8 +354,9 @@ bisect_clean_state() {
354 }
355
356 bisect_replay () {
357 - test "$#" -eq 1 || die "No logfile given"
358 - test -r "$1" || die "cannot read $1 for replaying"
357 + file="$1"
358 + test "$#" -eq 1 || die "$(gettext "No logfile given")"
359 + test -r "$file" || die "$(eval_gettext "cannot read \$file for replaying")"
360 bisect_reset
361 while read git bisect command rev
362 do
@@ -373,7 +374,7 @@ bisect_replay () {
374 *)
375 die "$(gettext "?? what are you talking about?")" ;;
376 esac
376 - done <"$1"
377 + done <"$file"
378 bisect_auto_next
379 }
380