Skip to content

l10n: zh_CN: updated translation for 2.49 #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: tl/zh_CN_2.49.0_rnd
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2612,7 +2612,7 @@ static void print_stat_summary_inserts_deletes(struct diff_options *options,
}

strbuf_addf(&sb,
(files == 1) ? " %d file changed" : " %d files changed",
(files == 1) ? _(" %d file changed") : _(" %d files changed"),
files);

/*
Expand All @@ -2625,13 +2625,13 @@ static void print_stat_summary_inserts_deletes(struct diff_options *options,
*/
if (insertions || deletions == 0) {
strbuf_addf(&sb,
(insertions == 1) ? ", %d insertion(+)" : ", %d insertions(+)",
(insertions == 1) ? _(", %d insertion(+)") : _(", %d insertions(+)"),
insertions);
}

if (deletions || insertions == 0) {
strbuf_addf(&sb,
(deletions == 1) ? ", %d deletion(-)" : ", %d deletions(-)",
(deletions == 1) ? _(", %d deletion(-)") : _(", %d deletions(-)"),
deletions);
}
strbuf_addch(&sb, '\n');
Expand Down
21 changes: 21 additions & 0 deletions po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -19875,6 +19875,27 @@ msgstr ""
"发现配置变量 'diff.dirstat' 中的错误:\n"
"%s"

#: diff.c
#, c-format
msgid " %d file changed"
msgid_plural " %d files changed"
msgstr[0] " %d 文件更改"
msgstr[1] " %d 文件更改"

#: diff.c
#, c-format
msgid ", %d insertion(+)"
msgid_plural ", %d insertions(+)"
msgstr[0] ", %d 添加(+)"
msgstr[1] ", %d 添加(+)"

#: diff.c
#, c-format
msgid ", %d deletion(-)"
msgid_plural ", %d deletions(-)"
msgstr[0] ". %d 删除(-)"
msgstr[1] ", %d 删除(-)"

#: diff.c
#, c-format
msgid "external diff died, stopping at %s"
Expand Down