All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] i18n: branch: unmark string for translation
@ 2016-04-13 10:29 Vasco Almeida
  2016-04-13 10:29 ` [PATCH 2/2] i18n: branch: move comment for translators Vasco Almeida
  2016-04-14 16:13 ` [PATCH 1/2] i18n: branch: unmark string for translation Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: Vasco Almeida @ 2016-04-13 10:29 UTC (permalink / raw)
  To: git; +Cc: Vasco Almeida, Jiang Xin

Unmark strings for translation for command help/hint.
These strings can not be translated, just copied.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
Moreover, prevent a possible translation mistake, e.g. wrong leading
spacing.

 builtin/branch.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/builtin/branch.c b/builtin/branch.c
index 7b45b6b..b327cca 100644
--- a/builtin/branch.c
+++ b/builtin/branch.c
@@ -828,8 +828,8 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
 		if (argc == 1 && track == BRANCH_TRACK_OVERRIDE &&
 		    !branch_existed && remote_tracking) {
 			fprintf(stderr, _("\nIf you wanted to make '%s' track '%s', do this:\n\n"), head, branch->name);
-			fprintf(stderr, _("    git branch -d %s\n"), branch->name);
-			fprintf(stderr, _("    git branch --set-upstream-to %s\n"), branch->name);
+			fprintf(stderr, "    git branch -d %s\n", branch->name);
+			fprintf(stderr, "    git branch --set-upstream-to %s\n", branch->name);
 		}
 
 	} else
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] i18n: branch: move comment for translators
  2016-04-13 10:29 [PATCH 1/2] i18n: branch: unmark string for translation Vasco Almeida
@ 2016-04-13 10:29 ` Vasco Almeida
  2016-04-14 16:13 ` [PATCH 1/2] i18n: branch: unmark string for translation Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Vasco Almeida @ 2016-04-13 10:29 UTC (permalink / raw)
  To: git; +Cc: Vasco Almeida, Jiang Xin

Move and split comment for translators (marked by TRANSLATORS) to be
immediately above the strings marked for translation.

As a result, the comment can now be extracted by xgettext.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 builtin/branch.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/builtin/branch.c b/builtin/branch.c
index b327cca..8a0a181 100644
--- a/builtin/branch.c
+++ b/builtin/branch.c
@@ -369,12 +369,14 @@ static char *get_head_description(void)
 		strbuf_addf(&desc, _("(no branch, bisect started on %s)"),
 			    state.branch);
 	else if (state.detached_from) {
-		/* TRANSLATORS: make sure these match _("HEAD detached at ")
-		   and _("HEAD detached from ") in wt-status.c */
 		if (state.detached_at)
+			/* TRANSLATORS: make sure this matches
+			   "HEAD detached at " in wt-status.c */
 			strbuf_addf(&desc, _("(HEAD detached at %s)"),
 				state.detached_from);
 		else
+			/* TRANSLATORS: make sure this matches
+			   "HEAD detached from " in wt-status.c */
 			strbuf_addf(&desc, _("(HEAD detached from %s)"),
 				state.detached_from);
 	}
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] i18n: branch: unmark string for translation
  2016-04-13 10:29 [PATCH 1/2] i18n: branch: unmark string for translation Vasco Almeida
  2016-04-13 10:29 ` [PATCH 2/2] i18n: branch: move comment for translators Vasco Almeida
@ 2016-04-14 16:13 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2016-04-14 16:13 UTC (permalink / raw)
  To: Vasco Almeida; +Cc: git, Jiang Xin

Thanks, picked up and queued.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-14 16:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-13 10:29 [PATCH 1/2] i18n: branch: unmark string for translation Vasco Almeida
2016-04-13 10:29 ` [PATCH 2/2] i18n: branch: move comment for translators Vasco Almeida
2016-04-14 16:13 ` [PATCH 1/2] i18n: branch: unmark string for translation Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.