From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 11:52:47 +0000 (+0000) Subject: gettextize: git-stash drop_stash say/die messages X-Git-Tag: ko-pu~10^2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc609aa929677736fcb991cbc9e6b678fa040c49;p=git.git gettextize: git-stash drop_stash say/die messages Gettextize the say/die eval_gettext messages in the drop_stash function. Since making these translatable would result in a long line I've wrapped this into two lines. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/git-stash.sh b/git-stash.sh index 722669a7d..717ee3c5e 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -433,7 +433,8 @@ drop_stash () { assert_stash_ref "$@" git reflog delete --updateref --rewrite "${REV}" && - say "Dropped ${REV} ($s)" || die "${REV}: Could not drop stash entry" + say "$(eval_gettext "Dropped \${REV} (\$s)")" || + die "$(eval_gettext "\${REV}: Could not drop stash entry")" # clear_stash if we just dropped the last stash entry git rev-parse --verify "$ref_stash@{0}" > /dev/null 2>&1 || clear_stash