Code

gettextize: git-submodule "path not initialized" message
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 13 Sep 2010 20:25:45 +0000 (20:25 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2010 07:58:22 +0000 (07:58 +0000)
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 <avarab@gmail.com>
git-submodule.sh
t/t7400-submodule-basic.sh

index cd37bf71f93acd36c063cb61ebbe776eee6b9eb6..edf877475d8952e63eca95419061976ff2949a21 100755 (executable)
@@ -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
 
index 70107938fc061ad3dfbc897ac9d97313dfc43cbb..c46530fd51ce88776bd61e194591d9ec53b4dc31 100755 (executable)
@@ -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 &&