From: Ævar Arnfjörð Bjarmason Date: Wed, 1 Sep 2010 19:18:54 +0000 (+0000) Subject: gettextize: git-checkout: our/their version message X-Git-Tag: ko-pu~10^2~121 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fa4a2a0f736949356e09b27259a4bc80f546f606;p=git.git gettextize: git-checkout: our/their version message Split up the "does not have our/their version" message to make it easier to translate. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/builtin/checkout.c b/builtin/checkout.c index add602fc9..1db06a447 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -103,9 +103,10 @@ static int check_stage(int stage, struct cache_entry *ce, int pos) return 0; pos++; } - return error("path '%s' does not have %s version", - ce->name, - (stage == 2) ? "our" : "their"); + if (stage == 2) + return error(_("path '%s' does not have our version"), ce->name); + else + return error(_("path '%s' does not have their version"), ce->name); } static int check_all_stages(struct cache_entry *ce, int pos) @@ -130,9 +131,10 @@ static int checkout_stage(int stage, struct cache_entry *ce, int pos, return checkout_entry(active_cache[pos], state, NULL); pos++; } - return error("path '%s' does not have %s version", - ce->name, - (stage == 2) ? "our" : "their"); + if (stage == 2) + return error(_("path '%s' does not have our version"), ce->name); + else + return error(_("path '%s' does not have their version"), ce->name); } static int checkout_merged(int pos, struct checkout *state)