From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 11:39:41 +0000 (+0000) Subject: gettextize: git-stash die + eval_gettext $* messages X-Git-Tag: ko-pu~10^2~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1308cab44b59f374a0ca4dddf2226bf0df2ce832;p=git.git gettextize: git-stash die + eval_gettext $* messages Gettextize messages that used the $* variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/git-stash.sh b/git-stash.sh index a01bd5944..9c9ca8da6 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -330,7 +330,10 @@ is_stash_like() } assert_stash_like() { - is_stash_like "$@" || die "'$*' is not a stash-like commit" + is_stash_like "$@" || { + args="$*" + die "$(eval_gettext "'\$args' is not a stash-like commit")" + } } is_stash_ref() { @@ -338,7 +341,10 @@ is_stash_ref() { } assert_stash_ref() { - is_stash_ref "$@" || die "'$*' is not a stash reference" + is_stash_ref "$@" || { + args="$*" + die "$(eval_gettext "'\$args' is not a stash reference")" + } } apply_stash () {