Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Commit

Permalink
🐛 Add proper plural processing in CSV importer (found issues during l…
Browse files Browse the repository at this point in the history
…ocalization)
  • Loading branch information
vsvyatski committed Jun 27, 2017
1 parent 9d1c58a commit 701f3d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/csvImport/CsvParserModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 701f3d6

Please sign in to comment.