From: Ævar Arnfjörð Bjarmason Date: Mon, 13 Sep 2010 20:25:16 +0000 (+0000) Subject: gettextize: git-submodule "Submodule change[...]" messages X-Git-Tag: ko-pu~10^2~27 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=efdc8a20bfa892bb4726b9872b7e622ff5c51b84;p=git.git gettextize: git-submodule "Submodule change[...]" messages 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 --- diff --git a/git-submodule.sh b/git-submodule.sh index fcb11d974..065b3434a 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -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|^# $|#|' diff --git a/t/t7401-submodule-summary.sh b/t/t7401-submodule-summary.sh index 9963f2964..e14a2de0d 100755 --- a/t/t7401-submodule-summary.sh +++ b/t/t7401-submodule-summary.sh @@ -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 - <