summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-05-21 18:44:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-21 18:57:17 (GMT)
commitd4ca6c8b3e36b67f214317879c2c4cd80d1b1c25 (patch)
tree53a5c17cc08f6039cfd79629365c09de0bab2349 /git-stash.sh
parenteed10649c2864168e6205057ce49101cc1123a13 (diff)
downloadgit-d4ca6c8b3e36b67f214317879c2c4cd80d1b1c25.zip
git-d4ca6c8b3e36b67f214317879c2c4cd80d1b1c25.tar.gz
git-d4ca6c8b3e36b67f214317879c2c4cd80d1b1c25.tar.bz2
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>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh
index fa5a43e..5619da5 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -430,7 +430,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