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>
This commit is contained in:
Sergey Starosek 2015-10-29 11:24:47 +03:00 committed by Dirk Hohndel
parent f451387f8f
commit 9132390689
2 changed files with 5 additions and 8 deletions

View file

@ -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()) {