From: Ævar Arnfjörð Bjarmason Date: Wed, 1 Sep 2010 19:04:36 +0000 (+0000) Subject: gettextize: git-branch "(no branch)" message X-Git-Tag: ko-pu~10^2~123 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=84f4a92711e5857bb7a1d9807e86b458540387d6;p=git.git gettextize: git-branch "(no branch)" message Gettextize the "(no branch)" message that's shown by "git branch" when you're in a detached HEAD. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/builtin/branch.c b/builtin/branch.c index 59e71fc40..fc6c4c341 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -481,7 +481,7 @@ static void show_detached(struct ref_list *ref_list) if (head_commit && is_descendant_of(head_commit, ref_list->with_commit)) { struct ref_item item; - item.name = xstrdup("(no branch)"); + item.name = xstrdup(_("(no branch)")); item.len = strlen(item.name); item.kind = REF_LOCAL_BRANCH; item.dest = NULL; diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh index 809d1c4ed..dfdf5a749 100755 --- a/t/t3203-branch-output.sh +++ b/t/t3203-branch-output.sh @@ -72,7 +72,7 @@ cat >expect <<'EOF' branch-two master EOF -test_expect_success 'git branch shows detached HEAD properly' ' +test_expect_success NO_GETTEXT_POISON 'git branch shows detached HEAD properly' ' git checkout HEAD^0 && git branch >actual && test_cmp expect actual