From: Ævar Arnfjörð Bjarmason Date: Sun, 19 Sep 2010 13:58:04 +0000 (+0000) Subject: gettextize: git-branch "Deleted branch [...]" message X-Git-Tag: ko-pu~10^2~125 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3633a2d423f7654f79afda983638a6ec0b2ea98a;p=git.git gettextize: git-branch "Deleted branch [...]" message Gettextize the "Deleted %sbranch %s (was %s).\n" messages. test in t3200-branch.sh explicitly checked for this message. Change it to skip under GETTEXT_POISON=YesPlease. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/builtin/branch.c b/builtin/branch.c index 5a36395e0..880203398 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -214,7 +214,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds) ret = 1; } else { struct strbuf buf = STRBUF_INIT; - printf("Deleted %sbranch %s (was %s).\n", remote, + printf(_("Deleted %sbranch %s (was %s).\n"), remote, bname.buf, find_unique_abbrev(sha1, DEFAULT_ABBREV)); strbuf_addf(&buf, "branch.%s", bname.buf); diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index f54a53345..d90d9fd93 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -192,7 +192,7 @@ test_expect_success 'test deleting branch deletes branch config' \ test -z "$(git config branch.my7.remote)" && test -z "$(git config branch.my7.merge)"' -test_expect_success 'test deleting branch without config' \ +test_expect_success NO_GETTEXT_POISON 'test deleting branch without config' \ 'git branch my7 s && sha1=$(git rev-parse my7 | cut -c 1-7) && test "$(git branch -d my7 2>&1)" = "Deleted branch my7 (was $sha1)."'