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

Re: [PATCH 19/25] gettextize: git-reset reset_type_names messages

From: Thomas Rast <hidden>
Date: 2016-06-15 22:49:33

Peter Krefting wrote:
This is untranslatable for several languages. For Swedish it would suffice 
to move the " reset" part into the array:
quoted
-	"mixed", "soft", "hard", "merge", "keep", NULL
+	N_("mixed"), N_("soft"), N_("hard"), N_("merge"), N_("keep"), NULL
};
changing it to

N_("mixed reset"), N_("soft reset"), ...

and changing this
quoted
-		die("Cannot do a %s reset in the middle of a merge.",
-		    reset_type_names[reset_type]);
+		die(_("Cannot do a %s reset in the middle of a merge."),
+		    _(reset_type_names[reset_type]));
into "... do a %s in ..", with similar changes for the others.
This would still break even in English(!) if we ever introduced an
arduous or extreme reset...

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help