From 6d55e7fc204f2417ef24934cf0b4a60b37302049 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 14 Sep 2010 11:43:29 +0000 Subject: [PATCH] gettextize: git-stash die + eval_gettext messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ævar Arnfjörð Bjarmason --- git-stash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-stash.sh b/git-stash.sh index 082d2761a..a01bd5944 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -294,7 +294,7 @@ parse_flags_and_rev() : ;; *) - die "Too many revisions specified: $REV" + die "$(eval_gettext "Too many revisions specified: \$REV")" ;; esac @@ -318,7 +318,7 @@ parse_flags_and_rev() # this condition with a non-zero status code but as of 1.7.2.1 it # it did not. So, we use non-empty stderr output as a proxy for the # condition of interest. - test -z "$(git rev-parse "$REV" 2>&1 >/dev/null)" || die "$REV does not exist in the stash log" + test -z "$(git rev-parse "$REV" 2>&1 >/dev/null)" || die "$(eval_gettext "\$REV does not exist in the stash log")" fi } -- 2.30.2