summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Sergey Starosek <sergey.starosek@gmail.com>2015-10-29 11:24:47 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-29 12:17:29 -0700
commit9132390689e89ba589011d4110a3a1f654842cb1 (patch)
tree3237275c97527dd162cdae79a6552c7f7bcd279d /qt-ui
parentf451387f8f2901f312af2b1bdbc6c095c44e27bd (diff)
downloadsubsurface-9132390689e89ba589011d4110a3a1f654842cb1.tar.gz
Fix plurals translation
This allows separate translation of singular and plural forms Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/modeldelegates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 7bdb69933..881037a83 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -543,7 +543,7 @@ void LocationFilterDelegate::paint(QPainter *painter, const QStyleOptionViewItem
QString distance = distance_string(distanceMeters);
int nr = nr_of_dives_at_dive_site(ds->uuid, false);
bottomText += tr(" (~%1 away").arg(distance);
- bottomText += tr(", %1 dive(s) here)").arg(nr);
+ bottomText += tr(", %n dive(s) here)", "", nr);
}
}
if (bottomText.isEmpty()) {