1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-20 06:26:30 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Jordi Mas 9f59318e52
Merge 70f85b63ee into 9f32d8da7a 2024-04-25 05:44:32 +00:00
Jordi Mas 70f85b63ee l10n: allows to translate diff messages
Allows to translate the diff messages shown when the
user commits, indicating the number of insertions,
deletions and files changed.

Signed-off-by: Jordi Mas <jmas@softcatala.org>
2021-07-12 15:31:36 +02:00

6
diff.c
View File

@ -2597,7 +2597,7 @@ static void print_stat_summary_inserts_deletes(struct diff_options *options,
}
strbuf_addf(&sb,
(files == 1) ? " %d file changed" : " %d files changed",
Q_(" %d file changed", " %d files changed", files),
files);
/*
@ -2610,13 +2610,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(+)",
Q_(", %d insertion(+)", ", %d insertions(+)", insertions),
insertions);
}
if (deletions || insertions == 0) {
strbuf_addf(&sb,
(deletions == 1) ? ", %d deletion(-)" : ", %d deletions(-)",
Q_(", %d deletion(-)", ", %d deletions(-)", deletions),
deletions);
}
strbuf_addch(&sb, '\n');