The last two chars of the concatenate str from the i18n marked strings (", ") will be stripped out by strbuf_setlen. before: "new commits, modified content, " end: "new commits, modified content" If the translations won't end with COMMA+SPACE, will break the integrity of the concatenate string. As for Chinese, COMMA+SPACE may translated to "," -- a 3-byte UTF-8 Chinese comma character. Signed-off-by: Jiang Xin <worldhello.net@xxxxxxxxx> --- wt-status.c | 6 +++--- 1 个文件被修改,插入 3 行(+),删除 3 行(-) diff --git a/wt-status.c b/wt-status.c index 9ffc535..0042dbc 100644 --- a/wt-status.c +++ b/wt-status.c @@ -245,11 +245,11 @@ static void wt_status_print_change_data(struct wt_status *s, if (d->new_submodule_commits || d->dirty_submodule) { strbuf_addstr(&extra, " ("); if (d->new_submodule_commits) - strbuf_addf(&extra, _("new commits, ")); + strbuf_addf(&extra, "%s, ", _("new commits")); if (d->dirty_submodule & DIRTY_SUBMODULE_MODIFIED) - strbuf_addf(&extra, _("modified content, ")); + strbuf_addf(&extra, "%s, ", _("modified content")); if (d->dirty_submodule & DIRTY_SUBMODULE_UNTRACKED) - strbuf_addf(&extra, _("untracked content, ")); + strbuf_addf(&extra, "%s, ", _("untracked content")); strbuf_setlen(&extra, extra.len - 2); strbuf_addch(&extra, ')'); } -- 1.7.9.2.330.g152e4.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html