i18n: git-submodule "Submodule change[...]" messages
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 21 May 2011 18:44:04 +0000 (18:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 May 2011 18:57:16 +0000 (11:57 -0700)
Gettextize the "Submodules changed but not updated" and "Submodule
changes to be committed" messages. 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>
git-submodule.sh
t/t7401-submodule-summary.sh

index 444e1c581ae7d60e20cca2419093a61f068ea68a..60ea58e31b6fb1b586540766286f7bcc9b2f2fc6 100755 (executable)
@@ -745,9 +745,9 @@ cmd_summary() {
        done |
        if test -n "$for_status"; then
                if [ -n "$files" ]; then
-                       echo "# Submodules changed but not updated:"
+                       gettext "# Submodules changed but not updated:"; echo
                else
-                       echo "# Submodule changes to be committed:"
+                       gettext "# Submodule changes to be committed:"; echo
                fi
                echo "#"
                sed -e 's|^|# |' -e 's|^# $|#|'
index 7d7fde057b04e4615e32b0ddc71fd3b07968a129..44ebc45da0a3eb4297eb99b164c3bd2af4563a8f 100755 (executable)
@@ -228,7 +228,7 @@ EOF
 
 test_expect_success '--for-status' "
     git submodule summary --for-status HEAD^ >actual &&
-    test_cmp actual - <<EOF
+    test_i18ncmp actual - <<EOF
 # Submodule changes to be committed:
 #
 # * sm1 $head6...0000000: