Thread (1 message) 1 message, 1 author, 2016-10-05

Re: [PATCH v3 03/14] i18n: add--interactive: mark strings with interpolation for translation

From: Junio C Hamano <hidden>
Date: 2016-10-05 22:29:27

Vasco Almeida [off-list ref] writes:
 				if (!defined $bottom) {
-					error_msg "Huh ($choice)?\n";
+					error_msg sprintf(__("Huh (%s)?\n"), $choice);
 					next TOPLOOP;
 				}
 			}
 			if ($opts->{SINGLETON} && $bottom != $top) {
-				error_msg "Huh ($choice)?\n";
+				error_msg sprintf(__("Huh (%s)?"), $choice);
 				next TOPLOOP;
Doesn't this want "\n" just like the other one in this hunk?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help