From: Ævar Arnfjörð Bjarmason Date: Sun, 19 Sep 2010 14:59:27 +0000 (+0000) Subject: gettextize: git-status "Initial commit" message X-Git-Tag: ko-pu~10^2~84 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c57c00faaee6a42477123964af197ecd9e5ae6f;p=git.git gettextize: 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 --- diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index 8297cb4f1..37a1f15a5 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 NO_GETTEXT_POISON \ + "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 4331a5a2b..9d267bc28 100644 --- a/wt-status.c +++ b/wt-status.c @@ -645,7 +645,7 @@ void wt_status_print(struct wt_status *s) if (s->is_initial) { color_fprintf_ln(s->fp, color(WT_STATUS_HEADER, s), "#"); - color_fprintf_ln(s->fp, color(WT_STATUS_HEADER, s), "# Initial commit"); + color_fprintf_ln(s->fp, color(WT_STATUS_HEADER, s), _("# Initial commit")); color_fprintf_ln(s->fp, color(WT_STATUS_HEADER, s), "#"); }