aboutsummaryrefslogtreecommitdiff
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-05-21 18:44:03 +0000
committerJunio C Hamano <gitster@pobox.com>2011-05-21 11:57:16 -0700
commitb9b9c22f6db3e3c089098ba04fbc885e2cb4f4dd (patch)
tree21e698dfd7cc58dbdf333e607cb0629b7c15b891 /git-submodule.sh
parentee653c89ff77eaadd2162870267ad812fdc34af5 (diff)
downloadgit-b9b9c22f6db3e3c089098ba04fbc885e2cb4f4dd.tar.gz
git-b9b9c22f6db3e3c089098ba04fbc885e2cb4f4dd.tar.xz
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>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 7eb1de03a..444e1c581 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -617,7 +617,7 @@ cmd_summary() {
if [ -n "$files" ]
then
test -n "$cached" &&
- die "--cached cannot be used with --files"
+ die "$(gettext -- "--cached cannot be used with --files")"
diff_cmd=diff-files
head=
fi