1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-09 10:16:08 +02:00

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>
This commit is contained in:
Jordi Mas 2021-07-12 10:41:31 +02:00
parent d486ca60a5
commit 70f85b63ee

6
diff.c
View File

@ -2593,7 +2593,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);
/*
@ -2606,13 +2606,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');