From: Ævar Arnfjörð Bjarmason Date: Sun, 03 Apr 2011 16:45:54 GMT Subject: [PATCH 30/51] i18n: git-submodule "path not initialized" message Message-ID: <1301849175-1697-31-git-send-email-avarab@gmail.com> In-Reply-To: <1301849175-1697-1-git-send-email-avarab@gmail.com> Gettextize the "Submodule path '$path' not initialized" message. This is explicitly tested for so we need to skip some tests with C_LOCALE_OUTPUT. Signed-off-by: Ævar Arnfjörð Bjarmason --- git-submodule.sh | 4 ++-- t/t7400-submodule-basic.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/git-submodule.sh b/git-submodule.sh index 43a10e2..bc24b2f 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -436,8 +436,8 @@ cmd_update() # Only mention uninitialized submodules when its # path have been specified test "$#" != "0" && - say "Submodule path '$path' not initialized" && - say "Maybe you want to use 'update --init'?" + say "$(eval_gettext "Submodule path '\$path' not initialized +Maybe you want to use 'update --init'?")" continue fi diff --git a/t/t7400-submodule-basic.sh b/t/t7400-submodule-basic.sh index 1911688..eded7e9 100755 --- a/t/t7400-submodule-basic.sh +++ b/t/t7400-submodule-basic.sh @@ -349,7 +349,7 @@ test_expect_success 'apply submodule diff' ' test_cmp empty staged ' -test_expect_success 'update --init' ' +test_expect_success C_LOCALE_OUTPUT 'update --init' ' mv init init2 && git config -f .gitmodules submodule.example.url "$(pwd)/init2" && git config --remove-section submodule.example && -- 1.7.4.1