[PATCH/RFC 07/12] gettextize: git-submodule "Submodule change[...]" messages
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Sep 13, 2010, 22:09 UTC
- Message-ID
- <1284415758-20931-8-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1284415758-20931-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 some tests with NO_GETTEXT_POISON.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- 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 fcb11d9..065b343 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 6a320cc..70b2fb1 100755 --- a/t/t7401-submodule-summary.sh +++ b/t/t7401-submodule-summary.sh @@ -225,7 +225,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:
-- 1.7.3.rc1.220.gb4d42