From: Ævar Arnfjörð Bjarmason Date: Sun, 08 May 2011 12:20:55 GMT Subject: [PATCH 23/48] i18n: git-submodule "Submodule change[...]" messages Message-ID: <1304857280-14773-24-git-send-email-avarab@gmail.com> In-Reply-To: <1304857280-14773-1-git-send-email-avarab@gmail.com> 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 --- git-submodule.sh | 4 ++-- t/t7401-submodule-summary.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/git-submodule.sh b/git-submodule.sh index f0f885c3..7d2c51d 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -742,9 +742,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 7d7fde0..44ebc45 100755 --- a/t/t7401-submodule-summary.sh +++ b/t/t7401-submodule-summary.sh @@ -228,7 +228,7 @@ EOF test_expect_success '--for-status' " git submodule summary --for-status HEAD^ >actual && - test_cmp actual - <