i18n: git-am clean_abort messages

Messages that used the clean_abort function needed both gettext(1) and eval_gettext(). These need to be interpolated in a string like the die and cannot_fallback messages. 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:43 UTC d62a1461c31e341bea9a25d54d09dcc1cd1a28a0
1 file changed +3 -3
git-am.sh
+3 -3
@@ -258,7 +258,7 @@ split_patches () {
258 stgit-series)
259 if test $# -ne 1
260 then
261 - clean_abort "Only one StGIT patch series can be applied at once"
261 + clean_abort "$(gettext "Only one StGIT patch series can be applied at once")"
262 fi
263 series_dir=`dirname "$1"`
264 series_file="$1"
@@ -310,9 +310,9 @@ split_patches () {
310 ;;
311 *)
312 if test -n "$parse_patch" ; then
313 - clean_abort "Patch format $patch_format is not supported."
313 + clean_abort "$(eval_gettext "Patch format \$patch_format is not supported.")"
314 else
315 - clean_abort "Patch format detection failed."
315 + clean_abort "$(gettext "Patch format detection failed.")"
316 fi
317 ;;
318 esac