mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-16 09:47:18 -05:00
🐛 Add proper plural processing in CSV importer (found issues during localization)
This commit is contained in:
parent
9d1c58a218
commit
701f3d6054
@ -31,9 +31,9 @@ void CsvParserModel::setFilename(const QString& filename) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString CsvParserModel::getFileInfo(){
|
QString CsvParserModel::getFileInfo(){
|
||||||
QString a(QString::number(getFileSize()).append(tr(" byte, ")));
|
QString a(tr("%n byte(s), ", Q_NULLPTR, getFileSize()));
|
||||||
a.append(QString::number(getCsvRows())).append(tr(" rows, "));
|
a.append(tr("%n row(s), ", Q_NULLPTR, getCsvRows()));
|
||||||
a.append(QString::number(qMax(0, getCsvCols()-1))).append(tr(" columns"));
|
a.append(tr("%n column(s)", Q_NULLPTR, qMax(0, getCsvCols() - 1)));
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user