summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3633a2d)
raw | patch | inline | side by side (parent: 3633a2d)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Wed, 1 Sep 2010 19:04:02 +0000 (19:04 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:10:10 +0000 (07:10 +0000) |
Make the "git branch -v" messages translatable, e.g.:
5054b57 [ahead 8] branch error fixup
This is possibly a plumbing message.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
5054b57 [ahead 8] branch error fixup
This is possibly a plumbing message.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
builtin/branch.c | patch | blob | history | |
t/t6040-tracking-info.sh | patch | blob | history |
diff --git a/builtin/branch.c b/builtin/branch.c
index 8802033987a9b7823d3ee1a1b6d2188e2939e837..59e71fc40ab335ed78ed35b0271c8b2c3ac8fa0c 100644 (file)
--- a/builtin/branch.c
+++ b/builtin/branch.c
strbuf_addf(stat, "%s: ",
shorten_unambiguous_ref(branch->merge[0]->dst, 0));
if (!ours)
- strbuf_addf(stat, "behind %d] ", theirs);
+ strbuf_addf(stat, _("behind %d] "), theirs);
else if (!theirs)
- strbuf_addf(stat, "ahead %d] ", ours);
+ strbuf_addf(stat, _("ahead %d] "), ours);
else
- strbuf_addf(stat, "ahead %d, behind %d] ", ours, theirs);
+ strbuf_addf(stat, _("ahead %d, behind %d] "), ours, theirs);
}
static int matches_merge_filter(struct commit *commit)
index 1785e178a4cb8fddd58d1b1db8062cf12825155e..c9a86f615199c526b19ac8559a1146536c69794d 100755 (executable)
--- a/t/t6040-tracking-info.sh
+++ b/t/t6040-tracking-info.sh
b4 ahead 2
EOF
-test_expect_success 'branch -v' '
+test_expect_success NO_GETTEXT_POISON 'branch -v' '
(
cd test &&
git branch -v