From 1008b0596c40eca72654787abbb079ad2b4a3151 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 13 Sep 2010 20:14:24 +0000 Subject: [PATCH] gettextize: git-submodule "[...] path is ignored" message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Gettextize the "The following path is ignored" message. This is explicitly tested for so we need to skip some tests with NO_GETTEXT_POISON. Signed-off-by: Ævar Arnfjörð Bjarmason --- git-submodule.sh | 6 +++--- t/t7400-submodule-basic.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/git-submodule.sh b/git-submodule.sh index 6ec6aa5a9..cd37bf71f 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -208,9 +208,9 @@ 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." + echo >&2 "$(eval_gettext "The following path is ignored by one of your .gitignore files: +\$path +Use -f if you really want to add it.")" exit 1 fi diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 782b0a3ec..70107938f 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -86,7 +86,7 @@ test_expect_success 'submodule add' ' test_cmp empty untracked ' -test_expect_success 'submodule add to .gitignored path fails' ' +test_expect_success NO_GETTEXT_POISON 'submodule add to .gitignored path fails' ' ( cd addtest-ignore && cat <<-\EOF >expect && -- 2.30.2