UI: use correct singular and plural nouns in report messages

Differential Revision: https://developer.blender.org/D5729
This commit is contained in:
Yevgeny Makarov
2019-10-01 20:15:16 +02:00
committed by Brecht Van Lommel
parent 17f6b4d0f8
commit 3e8276311e
7 changed files with 56 additions and 11 deletions

View File

@@ -267,7 +267,11 @@ void BKE_packedfile_pack_all(Main *bmain, ReportList *reports, bool verbose)
}
if (tot > 0) {
BKE_reportf(reports, RPT_INFO, "Packed %d files", tot);
BKE_reportf(reports,
RPT_INFO,
tot == 1 ? "Packed %d file" :
"Packed %d files",
tot);
}
else if (verbose) {
BKE_report(reports, RPT_INFO, "No new files have been packed");