From: Ævar Arnfjörð Bjarmason Date: Tue, 22 Feb 2011 23:42:17 +0000 (+0000) Subject: i18n: git-status "Initial commit" message X-Git-Tag: v1.7.5-rc1~19^2~15 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b3b298afcbcb5cf5b497928fc9bcd17624112233?ds=inline;hp=--cc i18n: git-status "Initial commit" message Gettextize the "# Initial commit" message. A test in t7501-commit.sh explicitly checked for this message. Change it to skip under GETTEXT_POISON=YesPlease. Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- b3b298afcbcb5cf5b497928fc9bcd17624112233 diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 8980738c75..a76c474195 100755 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -14,8 +14,11 @@ test_tick test_expect_success \ "initial status" \ "echo 'bongo bongo' >file && - git add file && \ - git status | grep 'Initial commit'" + git add file" + +test_expect_success C_LOCALE_OUTPUT \ + "Constructing initial commit" \ + "git status | grep 'Initial commit'" test_expect_success \ "fail initial amend" \ diff --git a/wt-status.c b/wt-status.c index 321c4f8723..f0b8c68883 100644 --- a/wt-status.c +++ b/wt-status.c @@ -725,7 +725,7 @@ void wt_status_print(struct wt_status *s) if (s->is_initial) { status_printf_ln(s, color(WT_STATUS_HEADER, s), ""); - status_printf_ln(s, color(WT_STATUS_HEADER, s), "Initial commit"); + status_printf_ln(s, color(WT_STATUS_HEADER, s), _("Initial commit")); status_printf_ln(s, color(WT_STATUS_HEADER, s), ""); }