i18n: git-submodule "Entering [...]" message

Gettextize the "Entering [...]" message. This is explicitly tested for so we need to skip a portion of a test with test_i18ncmp. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed May 21, 2011 at 18:44 UTC 490b6d5749c432370c4f8a5ed8d854cbf1116e20
2 files changed +3 -3
git-submodule.sh
+1 -1
@@ -306,7 +306,7 @@ cmd_foreach()
306 do
307 if test -e "$path"/.git
308 then
309 - say "Entering '$prefix$path'"
309 + say "$(eval_gettext "Entering '\$prefix\$path'")"
310 name=$(module_name "$path")
311 (
312 prefix="$prefix$path/"
t/t7407-submodule-foreach.sh
+2 -2
@@ -77,7 +77,7 @@ test_expect_success 'test basic "submodule foreach" usage' '
77 git config foo.bar zar &&
78 git submodule foreach "git config --file \"\$toplevel/.git/config\" foo.bar"
79 ) &&
80 - test_cmp expect actual
80 + test_i18ncmp expect actual
81 '
82
83 test_expect_success 'setup nested submodules' '
@@ -158,7 +158,7 @@ test_expect_success 'test messages from "foreach --recursive"' '
158 cd clone2 &&
159 git submodule foreach --recursive "true" > ../actual
160 ) &&
161 - test_cmp expect actual
161 + test_i18ncmp expect actual
162 '
163
164 cat > expect <<EOF