From: Ævar Arnfjörð Bjarmason Date: Sat, 21 May 2011 18:44:16 +0000 (+0000) Subject: i18n: git-stash die + eval_gettext $1 messages X-Git-Tag: v1.7.7-rc0~116^2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=155da748ef4938382db50ab5784b2a3971932c08;p=git.git i18n: git-stash die + eval_gettext $1 messages Gettextize a messages that used the $1 variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/git-stash.sh b/git-stash.sh index 509e14f05..ede35a533 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -299,7 +299,10 @@ parse_flags_and_rev() ;; esac - REV=$(git rev-parse --quiet --symbolic --verify $1 2>/dev/null) || die "$1 is not valid reference" + REV=$(git rev-parse --quiet --symbolic --verify $1 2>/dev/null) || { + reference="$1" + die "$(eval_gettext "\$reference is not valid reference")" + } i_commit=$(git rev-parse --quiet --verify $REV^2 2>/dev/null) && set -- $(git rev-parse $REV $REV^1 $REV: $REV^1: $REV^2: 2>/dev/null) &&