From 425c75416a211f4af3dbbfde91de87add45f7e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 19 Oct 2016 23:15:42 +0200 Subject: [PATCH] Added proper plural handling --- lang/gpxsee_cs.ts | 18 +++++++++++------- src/gui.cpp | 3 ++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/lang/gpxsee_cs.ts b/lang/gpxsee_cs.ts index d2a20530..f7f6ddad 100644 --- a/lang/gpxsee_cs.ts +++ b/lang/gpxsee_cs.ts @@ -1,6 +1,6 @@ - + ElevationGraph @@ -397,10 +397,14 @@ No GPX files loaded Nejsou načteny žádné GPX soubory - + %1 files - %1 souborů + + %1 soubor + %1 soubory + %1 souborů + @@ -651,22 +655,22 @@ ScaleItem - + mi mi - + ft ft - + km km - + m m diff --git a/src/gui.cpp b/src/gui.cpp index bdb07a94..97529fc9 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -962,7 +962,8 @@ void GUI::updateStatusBarInfo() else if (_files.count() == 1) _fileNameLabel->setText(_files.at(0)); else - _fileNameLabel->setText(tr("%1 files").arg(_files.count())); + _fileNameLabel->setText(tr("%1 files", "", _files.count()) + .arg(_files.count())); qreal d = distance(); Units units = _imperialUnitsAction->isChecked() ? Imperial : Metric;