Code

gettextize: git-submodule "Entering [...]" 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 "Entering [...]" 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/t7407-submodule-foreach.sh

index d453fe96cd56031b6834dba1602beea77fe70293..6ec6aa5a9498401afffe2146802fe0fbde0afc0c 100755 (executable)
@@ -291,7 +291,7 @@ cmd_foreach()
        do
                if test -e "$path"/.git
                then
-                       say "Entering '$prefix$path'"
+                       say "$(eval_gettext "Entering '\$prefix\$path'")"
                        name=$(module_name "$path")
                        (
                                prefix="$prefix$path/"
index 905a8baae9a03a4b47512bb3eb3e0f9ec84f5ca4..217fe55be5e32e3e079a1d9e45aba3c62f2a3281 100755 (executable)
@@ -68,7 +68,7 @@ Entering 'sub3'
 $pwd/clone-foo3-sub3-$sub3sha1
 EOF
 
-test_expect_success 'test basic "submodule foreach" usage' '
+test_expect_success NO_GETTEXT_POISON 'test basic "submodule foreach" usage' '
        git clone super clone &&
        (
                cd clone &&
@@ -153,7 +153,7 @@ Entering 'sub2'
 Entering 'sub3'
 EOF
 
-test_expect_success 'test messages from "foreach --recursive"' '
+test_expect_success NO_GETTEXT_POISON 'test messages from "foreach --recursive"' '
        (
                cd clone2 &&
                git submodule foreach --recursive "true" > ../actual