Code

gettextize: git-submodule "Submodule change[...]" messages
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 13 Sep 2010 20:25:16 +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 "Submodules changed but not updated" and "Submodule
changes to be committed" messages. 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/t7401-submodule-summary.sh

index fcb11d9749b305c010d3aa6d093722d0f65c660b..065b3434ae4a519a2ca0db7c4332f6477226d019 100755 (executable)
@@ -710,9 +710,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 9963f29647f5390f8fbf59a6e443d13ede3773da..e14a2de0d83640fb2fcb69d806da90703439d577 100755 (executable)
@@ -226,7 +226,7 @@ EOF
     test_cmp expected actual
 "
 
-test_expect_success '--for-status' "
+test_expect_success NO_GETTEXT_POISON '--for-status' "
     git submodule summary --for-status HEAD^ >actual &&
        test_cmp actual - <<EOF
 # Submodule changes to be committed: