i18n: git-submodule "cached cannot be used" message
Gettextize the "--cached cannot be used with --files" message. Since this message starts with "--" we have to pass "--" as the first argument. This works with both GNU gettext 0.18.1 (as expected), and the gettext(1) on Solaris 10. 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
b9b9c22f6db3e3c089098ba04fbc885e2cb4f4dd
1 file changed
+1
-1
git-submodule.sh
+1
-1
@@ -617,7 +617,7 @@ cmd_summary() {
617
if [ -n "$files" ]
618
then
619
test -n "$cached" &&
620
- die "--cached cannot be used with --files"
620
+ die "$(gettext -- "--cached cannot be used with --files")"
621
diff_cmd=diff-files
622
head=
623
fi