Skip to content

Commit b3b298a

Browse files
avargitster
authored andcommitted
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>
1 parent 919a4ce commit b3b298a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

t/t7501-commit.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ test_tick
1414
test_expect_success \
1515
"initial status" \
1616
"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'"
1922

2023
test_expect_success \
2124
"fail initial amend" \

wt-status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ void wt_status_print(struct wt_status *s)
725725

726726
if (s->is_initial) {
727727
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"));
729729
status_printf_ln(s, color(WT_STATUS_HEADER, s), "");
730730
}
731731

0 commit comments

Comments
 (0)