Thread (63 messages) flat view 63 messages, 5 authors, 2016-06-15

Re: [PATCH 10/25] gettextize: git-merge basic messages

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:28

Ævar Arnfjörð Bjarmason wrote:
quoted hunk ↗ jump to hunk
--- a/builtin/merge.c
+++ b/builtin/merge.c
@@ -116,13 +116,13 @@ static struct strategy *get_strategy(const char *name)
 		exclude_cmds(&main_cmds, &not_strategies);
 	}
 	if (!is_in_cmdlist(&main_cmds, name) && !is_in_cmdlist(&other_cmds, name)) {
-		fprintf(stderr, "Could not find merge strategy '%s'.\n", name);
-		fprintf(stderr, "Available strategies are:");
+		fprintf(stderr, _("Could not find merge strategy '%s'.\n"), name);
+		fprintf(stderr, _("Available strategies are:"));
Another basic question (sorry for my ignorance): do translators prefer
whole paragraphs or line-by-line messages like this?  (Of course that
is not a topic for this patch; I am just curious.)
quoted hunk ↗ jump to hunk
@@ -513,7 +513,7 @@ static int git_merge_config(const char *k, const char *v, void *cb)
 		int is_bool;
 		shortlog_len = git_config_bool_or_int(k, v, &is_bool);
 		if (!is_bool && shortlog_len < 0)
-			return error("%s: negative length %s???", k, v);
+			return error(_("%s: negative length %s???"), k, v);
What branch are you translating?  I am hoping the omgwtfbbq??! message
gets a chance to be tweaked before release.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help