From: Ævar Arnfjörð Bjarmason Date: Tue, 07 Sep 2010 20:46:21 GMT Subject: [PATCH v2 20/20] gettextize: git-am printf(1) message to eval_gettext Message-ID: <1283892381-29826-1-git-send-email-avarab@gmail.com> In-Reply-To: <1283878224-20202-1-git-send-email-avarab@gmail.com> Convert a message that used printf(1) format to use eval_gettext. It's easier for translators to handle the latter, since the eval format automatically gives them context via variable names. Signed-off-by: Ævar Arnfjörð Bjarmason --- Use eval_gettext directly as suggested by Jonathan Nieder. git-am.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/git-am.sh b/git-am.sh index 6992d92..bf0258d 100755 --- a/git-am.sh +++ b/git-am.sh @@ -778,7 +778,7 @@ did you forget to use 'git add'?"; echo fi if test $apply_status != 0 then - printf 'Patch failed at %s %s\n' "$msgnum" "$FIRSTLINE" + eval_gettext 'Patch failed at $msgnum $FIRSTLINE'; echo stop_here_user_resolve $this fi -- 1.7.2.3.313.gcd15