From 9132390689e89ba589011d4110a3a1f654842cb1 Mon Sep 17 00:00:00 2001 From: Sergey Starosek Date: Thu, 29 Oct 2015 11:24:47 +0300 Subject: Fix plurals translation This allows separate translation of singular and plural forms Signed-off-by: Sergey Starosek Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/modeldelegates.cpp') 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()) { -- cgit v1.2.3-70-g09d2