[PATCH 08/48] i18n: git-am clean_abort messages
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 8, 2011, 12:20 UTC
- Message-ID
- <1304857280-14773-9-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1304857280-14773-1-git-send-email-avarab@gmail.com>
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> --- git-am.sh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/git-am.sh b/git-am.sh index 5c06eda..ed48673 100755 --- a/git-am.sh +++ b/git-am.sh @@ -255,7 +255,7 @@ split_patches () { stgit-series) if test $# -ne 1 then - clean_abort "Only one StGIT patch series can be applied at once" + clean_abort "$(gettext "Only one StGIT patch series can be applied at once")" fi series_dir=`dirname "$1"` series_file="$1" @@ -307,9 +307,9 @@ split_patches () { ;; *) if test -n "$parse_patch" ; then - clean_abort "Patch format $patch_format is not supported." + clean_abort "$(eval_gettext "Patch format \$patch_format is not supported.")" else - clean_abort "Patch format detection failed." + clean_abort "$(gettext "Patch format detection failed.")" fi ;; esac
-- 1.7.4.4