Skip to content

Commit 6290117

Browse files
jiangxingitster
authored andcommitted
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 <[email protected]> Reviewed-by: Eric Sunshine <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6a38ef2 commit 6290117

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

wt-status.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,14 +1027,10 @@ void wt_status_print(struct wt_status *s)
10271027
if (advice_status_u_option && 2000 < s->untracked_in_ms) {
10281028
status_printf_ln(s, GIT_COLOR_NORMAL, "");
10291029
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);
10381034
}
10391035
} else if (s->commitable)
10401036
status_printf_ln(s, GIT_COLOR_NORMAL, _("Untracked files not listed%s"),

0 commit comments

Comments
 (0)