[PATCH 07/20] gettextize: git-revert "Your local changes" message

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?=
Date: Tuesday, September 7, 2010 - 9:47 am

Translate the "Your local changes [...]" message without using the
`me' variable, instead split up the two messages so translators can
translate the whole messages as-is.

Reported-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 builtin/revert.c |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/builtin/revert.c b/builtin/revert.c
index a93a5ba..ad2c76a 100644
--- a/builtin/revert.c
+++ b/builtin/revert.c
@@ -285,11 +285,19 @@ static NORETURN void die_dirty_index(const char *me)
 	if (read_cache_unmerged()) {
 		die_resolve_conflict(me);
 	} else {
-		if (advice_commit_before_merge)
-			die(_("Your local changes would be overwritten by %s.\n"
-			    "Please, commit your changes or stash them to proceed."), _(me));
-		else
-			die(_("Your local changes would be overwritten by %s.\n"), _(me));
+		if (advice_commit_before_merge) {
+			if (action == REVERT)
+				die(_("Your local changes would be overwritten by revert.\n"
+					  "Please, commit your changes or stash them to proceed."));
+			else
+				die(_("Your local changes would be overwritten by cherry-pick.\n"
+					  "Please, commit your changes or stash them to proceed."));
+		} else {
+			if (action == REVERT)
+				die("Your local changes would be overwritten by revert.\n");
+			else
+				die("Your local changes would be overwritten by cherry-pick.\n");
+		}
 	}
 }
 
-- 
1.7.2.3.313.gcd15

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/20] [CONTINUE] Add gettext support to Git, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:45 am)
[PATCH 01/20] gettextize: git-clean clean.requireForce braces, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:45 am)
[PATCH 02/20] gettextize: git-clone &quot;Cloning into&quot; message ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:45 am)
[PATCH 04/20] Makefile: add GNU_GETTEXT, set when we expec ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:47 am)
[PATCH 05/20] Makefile: MSGFMT=&quot;msgfmt --check&quot; under GNU_ ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:47 am)
[PATCH 07/20] gettextize: git-revert "Your local changes" ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:47 am)
[PATCH 08/20] gettextize: git-revert literal &quot;me&quot; messages, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:47 am)
[PATCH 09/20] gettext: add GETTEXT_POISON support for shel ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:47 am)
[PATCH 10/20] gettext: add GETTEXT_POISON tests for shell ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 11/20] gettextize: git-am add git-sh-i18n, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 12/20] gettextize: git-am one-line gettext $msg; echo, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 13/20] gettextize: git-am multi-line getttext $msg; ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 14/20] gettextize: git-am eval_gettext messages, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 15/20] gettextize: git-am die messages, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 16/20] gettextize: git-am cannot_fallback messages, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 17/20] gettextize: git-am clean_abort messages, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 18/20] gettextize: git-am &quot;Apply?&quot; message, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 19/20] gettextize: git-am core say messages, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:48 am)
[PATCH 20/20] gettextize: git-am printf(1) message to eval ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 9:50 am)
Re: [PATCH 20/20] gettextize: git-am printf(1) message to ..., Ævar Arnfjörð Bjarmason, (Tue Sep 7, 1:29 pm)
[PATCH v2 19/20] gettextize: git-am core say messages, =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 1:45 pm)
[PATCH v2 20/20] gettextize: git-am printf(1) message to e ..., =?UTF-8?q?=C3=86var= ..., (Tue Sep 7, 1:46 pm)
Re: [PATCH 00/20] [CONTINUE] Add gettext support to Git, Junio C Hamano, (Wed Sep 8, 9:43 am)
Re: [PATCH 00/20] [CONTINUE] Add gettext support to Git, Ævar Arnfjörð Bjarmason, (Wed Sep 8, 4:32 pm)
Re: [PATCH 00/20] [CONTINUE] Add gettext support to Git, Ævar Arnfjörð Bjarmason, (Fri Sep 10, 5:00 am)
Re: [PATCH 00/20] [CONTINUE] Add gettext support to Git, Junio C Hamano, (Fri Sep 10, 9:01 am)
Re: [PATCH 00/20] [CONTINUE] Add gettext support to Git, Ævar Arnfjörð Bjarmason, (Fri Sep 10, 10:17 am)
[PATCH 0/5] gettext docs: programmer docs in po/README, =?UTF-8?q?=C3=86var= ..., (Fri Sep 10, 12:35 pm)
[PATCH 1/5] gettext docs: add a &quot;Testing your changes&quot; sec ..., =?UTF-8?q?=C3=86var= ..., (Fri Sep 10, 12:35 pm)
[PATCH 2/5] gettext docs: add &quot;Marking strings for transla ..., =?UTF-8?q?=C3=86var= ..., (Fri Sep 10, 12:35 pm)
[PATCH 3/5] gettext docs: the gettext.h C interface, =?UTF-8?q?=C3=86var= ..., (Fri Sep 10, 12:35 pm)
[PATCH 4/5] gettext docs: the git-sh-i18n.sh Shell interface, =?UTF-8?q?=C3=86var= ..., (Fri Sep 10, 12:35 pm)
[PATCH 5/5] gettext docs: the Git::I18N Perl interface, =?UTF-8?q?=C3=86var= ..., (Fri Sep 10, 12:35 pm)
Re: [PATCH 3/5] gettext docs: the gettext.h C interface, Junio C Hamano, (Fri Sep 10, 3:30 pm)
Re: [PATCH 2/5] gettext docs: add &quot;Marking strings for tra ..., Ævar Arnfjörð Bjarmason, (Fri Sep 10, 3:31 pm)
Re: [PATCH 3/5] gettext docs: the gettext.h C interface, Junio C Hamano, (Fri Sep 10, 3:52 pm)
Re: [PATCH 3/5] gettext docs: the gettext.h C interface, Ævar Arnfjörð Bjarmason, (Fri Sep 10, 3:53 pm)
Re: [PATCH 4/5] gettext docs: the git-sh-i18n.sh Shell int ..., Ævar Arnfjörð Bjarmason, (Fri Sep 10, 3:58 pm)
Re: [PATCH 3/5] gettext docs: the gettext.h C interface, Ævar Arnfjörð Bjarmason, (Fri Sep 10, 4:03 pm)
Re: [PATCH 3/5] gettext docs: the gettext.h C interface, Junio C Hamano, (Fri Sep 10, 4:06 pm)
Re: [PATCH 3/5] gettext docs: the gettext.h C interface, Ævar Arnfjörð Bjarmason, (Fri Sep 10, 4:16 pm)
Re: [PATCH 0/5] gettext docs: programmer docs in po/README, Ævar Arnfjörð Bjarmason, (Fri Sep 10, 4:21 pm)