0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 12:22:16 +02:00

🐛 Add proper plural processing in CSV importer (found issues during localization)

This commit is contained in:
Vladimir Svyatski 2017-06-27 12:49:41 +03:00
parent 9d1c58a218
commit 701f3d6054

View File

@ -31,9 +31,9 @@ void CsvParserModel::setFilename(const QString& filename) {
}
QString CsvParserModel::getFileInfo(){
QString a(QString::number(getFileSize()).append(tr(" byte, ")));
a.append(QString::number(getCsvRows())).append(tr(" rows, "));
a.append(QString::number(qMax(0, getCsvCols()-1))).append(tr(" columns"));
QString a(tr("%n byte(s), ", Q_NULLPTR, getFileSize()));
a.append(tr("%n row(s), ", Q_NULLPTR, getCsvRows()));
a.append(tr("%n column(s)", Q_NULLPTR, qMax(0, getCsvCols() - 1)));
return a;
}