[PATCH 23/72] gettextize: git-checkout "Switched to a .. branch" message
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Feb 19, 2011, 19:24 UTC
- Message-ID
- <1298143495-3681-24-git-send-email-avarab@gmail.com>
- In-Reply-To
- <1298143495-3681-1-git-send-email-avarab@gmail.com>
Split up the "Switched to and reset branch" and "Switched to a new branch" messages to make them easier to translate.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> --- builtin/checkout.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/builtin/checkout.c b/builtin/checkout.c index f833330..2bb7759 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -550,9 +550,10 @@ static void update_refs_for_switch(struct checkout_opts *opts, fprintf(stderr, _("Already on '%s'\n"), new->name); else if (opts->new_branch) - fprintf(stderr, "Switched to%s branch '%s'\n", - opts->branch_exists ? " and reset" : " a new", - new->name); + if (opts->branch_exists) + fprintf(stderr, _("Switched to and reset branch '%s'\n"), new->name); + else + fprintf(stderr, _("Switched to a new branch '%s'\n"), new->name); else fprintf(stderr, _("Switched to branch '%s'\n"), new->name);
-- 1.7.2.3