i18n: 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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
May 21, 2011 at 18:44 UTC
777b6f13734d82a2775abdcc7220faede5e1aea8
1 file changed
+8
-2
git-stash.sh
+8
-2
@@ -321,7 +321,10 @@ is_stash_like()
321
}
322
323
assert_stash_like() {
324
- is_stash_like "$@" || die "'$*' is not a stash-like commit"
324
+ is_stash_like "$@" || {
325
+ args="$*"
326
+ die "$(eval_gettext "'\$args' is not a stash-like commit")"
327
+ }
328
}
329
330
is_stash_ref() {
@@ -329,7 +332,10 @@ is_stash_ref() {
332
}
333
334
assert_stash_ref() {
332
- is_stash_ref "$@" || die "'$*' is not a stash reference"
335
+ is_stash_ref "$@" || {
336
+ args="$*"
337
+ die "$(eval_gettext "'\$args' is not a stash reference")"
338
+ }
339
}
340
341
apply_stash () {