mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-30 18:18:35 -04:00
Merge pull request #690 from vsvyatski/develop
Added proper plural processing in CSV importer (localization)
This commit is contained in:
commit
079e383319
1 changed files with 3 additions and 3 deletions
|
@ -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), ", nullptr, getFileSize()));
|
||||
a.append(tr("%n row(s), ", nullptr, getCsvRows()));
|
||||
a.append(tr("%n column(s)", nullptr, qMax(0, getCsvCols() - 1)));
|
||||
return a;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue