From: Ævar Arnfjörð Bjarmason Date: Mon, 13 Sep 2010 20:25:45 +0000 (+0000) Subject: gettextize: git-submodule "path not initialized" message X-Git-Tag: ko-pu~10^2~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d9c1ee6cdc63f7cd09edeb25f5867c72fbe86e14;p=git.git gettextize: git-submodule "path not initialized" message Gettextize the "Submodule path '$path' not initialized" message. This is explicitly tested for so we need to skip some tests with NO_GETTEXT_POISON. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/git-submodule.sh b/git-submodule.sh index cd37bf71f..edf877475 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -441,8 +441,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 70107938f..c46530fd5 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 NO_GETTEXT_POISON 'update --init' ' mv init init2 && git config -f .gitmodules submodule.example.url "$(pwd)/init2" && git config --remove-section submodule.example &&