Merge branch 'nd/maint-diffstat-summary'
Earlier we made the diffstat summary line that shows the number of lines added/deleted localizable, but it was found irritating having to see them in various languages on a list whose discussion language is English. The original had trivial thinko in reverting Q_(), which has been fixed. * nd/maint-diffstat-summary: Revert diffstat back to English
This commit is contained in:
commit
9e40b6e595
10
diff.c
10
diff.c
@ -1398,11 +1398,11 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
|
||||
|
||||
if (!files) {
|
||||
assert(insertions == 0 && deletions == 0);
|
||||
return fprintf(fp, "%s\n", _(" 0 files changed"));
|
||||
return fprintf(fp, "%s\n", " 0 files changed");
|
||||
}
|
||||
|
||||
strbuf_addf(&sb,
|
||||
Q_(" %d file changed", " %d files changed", files),
|
||||
(files == 1) ? " %d file changed" : " %d files changed",
|
||||
files);
|
||||
|
||||
/*
|
||||
@ -1419,8 +1419,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
|
||||
* do not translate it.
|
||||
*/
|
||||
strbuf_addf(&sb,
|
||||
Q_(", %d insertion(+)", ", %d insertions(+)",
|
||||
insertions),
|
||||
(insertions == 1) ? ", %d insertion(+)" : ", %d insertions(+)",
|
||||
insertions);
|
||||
}
|
||||
|
||||
@ -1430,8 +1429,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
|
||||
* do not translate it.
|
||||
*/
|
||||
strbuf_addf(&sb,
|
||||
Q_(", %d deletion(-)", ", %d deletions(-)",
|
||||
deletions),
|
||||
(deletions == 1) ? ", %d deletion(-)" : ", %d deletions(-)",
|
||||
deletions);
|
||||
}
|
||||
strbuf_addch(&sb, '\n');
|
||||
|
Loading…
Reference in New Issue
Block a user