From 9f3027d81b734a38d285e814d0c86f272184fc73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 19 Sep 2010 14:18:47 +0000 Subject: [PATCH] gettextize: git-merge "Wonderful" message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Gettextize the "Wonderful" message. A test in t7600-merge.sh explicitly checked for this message. Change it to skip under GETTEXT_POISON=YesPlease. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/merge.c | 2 +- t/t7600-merge.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/merge.c b/builtin/merge.c index 595f216e4..62bdd6c77 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -780,7 +780,7 @@ static int merge_trivial(void) struct commit_list *parent = xmalloc(sizeof(*parent)); write_tree_trivial(result_tree); - printf("Wonderful.\n"); + printf(_("Wonderful.\n")); parent->item = lookup_commit(head); parent->next = xmalloc(sizeof(*parent->next)); parent->next->item = remoteheads->item; diff --git a/t/t7600-merge.sh b/t/t7600-merge.sh index b4f40e4c3..cc6c4e955 100755 --- a/t/t7600-merge.sh +++ b/t/t7600-merge.sh @@ -484,7 +484,7 @@ test_expect_success 'merge fast-forward in a dirty tree' ' test_debug 'git log --graph --decorate --oneline --all' -test_expect_success 'in-index merge' ' +test_expect_success NO_GETTEXT_POISON 'in-index merge' ' git reset --hard c0 && git merge --no-ff -s resolve c1 >out && grep "Wonderful." out && -- 2.30.2