From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 11:42:21 +0000 (+0000) Subject: gettextize: git-stash "unknown option" message X-Git-Tag: ko-pu~10^2~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fe86c77b57d98dfe31b2992fd2cca5bc638429ca;p=git.git gettextize: git-stash "unknown option" message Gettextize the "unknown option for 'stash save'" message that's shown on: $ git stash save --blah-blah error: unknown option for 'stash save': --blah-blah To provide a message, use git stash save -- '--blah-blah' Usage: git stash list [] In a translation the second line should be aligned with the first one. I've added a TRANSLATORS comment to indicate this. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/git-stash.sh b/git-stash.sh index e9365d7bf..722669a7d 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -151,8 +151,14 @@ save_stash () { break ;; -*) - echo "error: unknown option for 'stash save': $1" - echo " To provide a message, use git stash save -- '$1'" + option="$1" + # TRANSLATORS: $option is an invalid option, like + # `--blah-blah'. The 7 spaces at the beginning of the + # second line correspond to "error: ". So you should line + # up the second line with however many characters the + # translation of "error: " takes in your language. + eval_gettext "$("error: unknown option for 'stash save': \$option + To provide a message, use git stash save -- '\$option'")"; echo usage ;; *)