i18n: 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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
May 21, 2011 at 18:44 UTC
d4ca6c8b3e36b67f214317879c2c4cd80d1b1c25
1 file changed
+2
-1
git-stash.sh
+2
-1
@@ -430,7 +430,8 @@ drop_stash () {
430
assert_stash_ref "$@"
431
432
git reflog delete --updateref --rewrite "${REV}" &&
433
- say "Dropped ${REV} ($s)" || die "${REV}: Could not drop stash entry"
433
+ say "$(eval_gettext "Dropped \${REV} (\$s)")" ||
434
+ die "$(eval_gettext "\${REV}: Could not drop stash entry")"
435
436
# clear_stash if we just dropped the last stash entry
437
git rev-parse --verify "$ref_stash@{0}" > /dev/null 2>&1 || clear_stash