[PATCH 12/15] gettextize: git-revert mark the "me" variable for translation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?=
Date: Monday, September 6, 2010 - 5:21 am

The "me" variable is used in many later messages to indicate whether
we're using revert or cherry-pick. Mark it for translation for later
use. Also leave a TRANSLATORS message explaining what these are for.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 builtin/revert.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/builtin/revert.c b/builtin/revert.c
index ece0c0f..2f319f8 100644
--- a/builtin/revert.c
+++ b/builtin/revert.c
@@ -552,7 +552,9 @@ static int revert_or_cherry_pick(int argc, const char **argv)
 	struct rev_info revs;
 
 	git_config(git_default_config, NULL);
-	me = action == REVERT ? "revert" : "cherry-pick";
+	/* TRANSLATORS: This is used in several error messages indicating
+	   the name of the current program */
+	me = action == REVERT ? N_("revert") : N_("cherry-pick");
 	setenv(GIT_REFLOG_ACTION, me, 0);
 	parse_args(argc, argv);
 
-- 
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/63] [REDO] Add gettext support to Git, =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 01/63] builtin: use builtin.h for all builtin commands, =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 02/63] Add infrastructure for translating Git with ..., =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 05/63] tests: locate i18n lib&amp;data correctly under ..., =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 21/63] po/is.po: add Icelandic translation, =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 26/63] gettext tests: add GETTEXT_POISON=YesPlease ..., =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 27/63] gettext tests: skip lib-gettext.sh tests und ..., =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 28/63] gettext tests: skip breaking tests under GET ..., =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 51/63] gettextize: git-merge basic messages, =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 63/63] po/en_GB.po: add British English Translation, =?UTF-8?q?=C3=86var= ..., (Sat Sep 4, 3:10 pm)
[PATCH 00/15] [REDO CONTINUE] Add gettext support to Git, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 01/15] gettextize: git-archive basic messages, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 02/15] gettextize: git-bundle basic messages, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 03/15] gettextize: git-clean basic messages, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 04/15] gettextize: git-clean clean.requireForce mes ..., =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 05/15] gettextize: git-describe basic messages, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 06/15] gettextize: git-gc basic messages, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 07/15] gettextize: git-gc &quot;Auto packing the reposit ..., =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 08/15] gettextize: git-notes basic commands, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 09/15] gettextize: git-notes GIT_NOTES_REWRITE_MODE ..., =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 10/15] gettextize: git-notes &quot;Refusing to %s notes ..., =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 11/15] gettextize: git-revert basic messages, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 12/15] gettextize: git-revert mark the "me" variabl ..., =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 13/15] gettextize: git-revert messages using the &quot;m ..., =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 14/15] gettextize: git-revert split up &quot;could not r ..., =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
[PATCH 15/15] gettextize: git-shortlog basic messages, =?UTF-8?q?=C3=86var= ..., (Mon Sep 6, 5:21 am)
Re: [PATCH 15/15] gettextize: git-shortlog basic messages, Jonathan Nieder, (Mon Sep 6, 11:41 am)
Re: [PATCH 12/15] gettextize: git-revert mark the &quot;me&quot; var ..., Ævar Arnfjörð Bjarmason, (Mon Sep 6, 1:06 pm)
Re: [PATCH 13/15] gettextize: git-revert messages using th ..., Ævar Arnfjörð Bjarmason, (Mon Sep 6, 1:12 pm)
Re: [PATCH 14/15] gettextize: git-revert split up &quot;could n ..., Ævar Arnfjörð Bjarmason, (Mon Sep 6, 1:25 pm)
Re: [PATCH 14/15] gettextize: git-revert split up &quot;could n ..., Ævar Arnfjörð Bjarmason, (Tue Sep 7, 1:47 am)
Re: [PATCH 13/15] gettextize: git-revert messages using th ..., Ævar Arnfjörð Bjarmason, (Tue Sep 7, 1:51 am)