Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-05-21 22:44:07 +0400
committerJunio C Hamano <gitster@pobox.com>2011-05-21 22:57:16 +0400
commit3a4c3ed7e8b4f54876d6e855d3644c15d5d2207d (patch)
tree8ea6baee9867cfdabe90b1259fa811cfc8ff75eb /git-submodule.sh
parent490b6d5749c432370c4f8a5ed8d854cbf1116e20 (diff)
i18n: git-submodule "[...] path is ignored" message
Gettextize the "The following path is ignored" message. This is explicitly tested for so we need to skip a portion of a test with test_i18ncmp. 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.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index f7d7f51c37..11c4bade1a 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -223,9 +223,12 @@ cmd_add()
if test -z "$force" && ! git add --dry-run --ignore-missing "$path" > /dev/null 2>&1
then
- echo >&2 "The following path is ignored by one of your .gitignore files:" &&
- echo >&2 $path &&
- echo >&2 "Use -f if you really want to add it."
+ (
+ eval_gettext "The following path is ignored by one of your .gitignore files:
+\$path
+Use -f if you really want to add it." &&
+ echo
+ ) >&2
exit 1
fi