i18n: make the translation of -u advice in one go
The advice (consider use of -u when read_directory takes too long) is separated into 3 different status_printf_ln() calls, and which brings trouble for translators. Since status_vprintf() called by status_printf_ln() can handle eol in buffer, we could simply join these lines into one paragraph. Signed-off-by: Jiang Xin <worldhello.net@gmail.com> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jiang Xin committed
Apr 12, 2013 at 11:53 UTC
62901179cfbb86e31a4bed098cee9734a701912b
1 file changed
+4
-8
wt-status.c
+4
-8
@@ -1027,14 +1027,10 @@ void wt_status_print(struct wt_status *s)
1027
if (advice_status_u_option && 2000 < s->untracked_in_ms) {
1028
status_printf_ln(s, GIT_COLOR_NORMAL, "");
1029
status_printf_ln(s, GIT_COLOR_NORMAL,
1030
- _("It took %.2f seconds to enumerate untracked files."
1031
- " 'status -uno'"),
1032
- s->untracked_in_ms / 1000.0);
1033
- status_printf_ln(s, GIT_COLOR_NORMAL,
1034
- _("may speed it up, but you have to be careful not"
1035
- " to forget to add"));
1036
- status_printf_ln(s, GIT_COLOR_NORMAL,
1037
- _("new files yourself (see 'git help status')."));
1030
+ _("It took %.2f seconds to enumerate untracked files. 'status -uno'\n"
1031
+ "may speed it up, but you have to be careful not to forget to add\n"
1032
+ "new files yourself (see 'git help status')."),
1033
+ s->untracked_in_ms / 1000.0);
1034
}
1035
} else if (s->commitable)
1036
status_printf_ln(s, GIT_COLOR_NORMAL, _("Untracked files not listed%s"),