i18n: 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 [<options>] 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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed May 21, 2011 at 18:44 UTC eed10649c2864168e6205057ce49101cc1123a13
1 file changed +13 -2
git-stash.sh
+13 -2
@@ -152,8 +152,19 @@ save_stash () {
152 break
153 ;;
154 -*)
155 - echo "error: unknown option for 'stash save': $1"
156 - echo " To provide a message, use git stash save -- '$1'"
155 + option="$1"
156 + # TRANSLATORS: $option is an invalid option, like
157 + # `--blah-blah'. The 7 spaces at the beginning of the
158 + # second line correspond to "error: ". So you should line
159 + # up the second line with however many characters the
160 + # translation of "error: " takes in your language. E.g. in
161 + # English this is:
162 + #
163 + # $ git stash save --blah-blah 2>&1 | head -n 2
164 + # error: unknown option for 'stash save': --blah-blah
165 + # To provide a message, use git stash save -- '--blah-blah'
166 + eval_gettext "$("error: unknown option for 'stash save': \$option
167 + To provide a message, use git stash save -- '\$option'")"; echo
168 usage
169 ;;
170 *)