@matheusbsbs / matheus-bagliano / commits / b3b298afcb
Fork 0

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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 22, 2011 at 23:42 UTC b3b298afcbcb5cf5b497928fc9bcd17624112233
2 files changed +6 -3
t/t7501-commit.sh
+5 -2
@@ -14,8 +14,11 @@ test_tick
14 test_expect_success \
15 "initial status" \
16 "echo 'bongo bongo' >file &&
17 - git add file && \
18 - git status | grep 'Initial commit'"
17 + git add file"
18 +
19 +test_expect_success C_LOCALE_OUTPUT \
20 + "Constructing initial commit" \
21 + "git status | grep 'Initial commit'"
22
23 test_expect_success \
24 "fail initial amend" \
wt-status.c
+1 -1
@@ -725,7 +725,7 @@ void wt_status_print(struct wt_status *s)
725
726 if (s->is_initial) {
727 status_printf_ln(s, color(WT_STATUS_HEADER, s), "");
728 - status_printf_ln(s, color(WT_STATUS_HEADER, s), "Initial commit");
728 + status_printf_ln(s, color(WT_STATUS_HEADER, s), _("Initial commit"));
729 status_printf_ln(s, color(WT_STATUS_HEADER, s), "");
730 }
731