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

Re: [PATCH 25/25] gettextize: git-status shortstatus messages

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

Ævar Arnfjörð Bjarmason wrote:
quoted hunk ↗ jump to hunk
--- a/wt-status.c
+++ b/wt-status.c
@@ -814,15 +814,15 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
[...]
 	} else {
-		color_fprintf(s->fp, header_color, "ahead ");
+		color_fprintf(s->fp, header_color, _("ahead "));
 		color_fprintf(s->fp, branch_color_local, "%d", num_ours);
-		color_fprintf(s->fp, header_color, ", behind ");
+		color_fprintf(s->fp, header_color, _(", behind "));
 		color_fprintf(s->fp, branch_color_remote, "%d", num_theirs);
What we make those translators suffer through. :)  Would it be possible to
(eventually) introduce an interface vaguely like

	color_fprintf2(s->fp, "%C(ahead )%C(%d)%C(, behind )%C( %d)",
				header_color,
				branch_color_local, num_ours,
				header_color,
				branch_color_remote, num_theirs);

?  I guess this would require using strbuf_expand instead of vsnprintf
for %d et al.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help