summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-22 03:19:17 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-22 04:19:23 -0700
commit6e785a7bfc40bb6bf8780728c1a818abcac83c0e (patch)
tree5184496f859121b67ef1430686b59608183d39e9 /core/subsurface-qt
parentea218b9d248576ab4d8e0640bb596b46cbb2247a (diff)
downloadsubsurface-6e785a7bfc40bb6bf8780728c1a818abcac83c0e.tar.gz
QML UI: correctly build plural translation
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index 2e6d8707b..a93053ac8 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -333,7 +333,7 @@ QString DiveObjectHelper::tripMeta() const
QString ret = EMPTY_DIVE_STRING;
struct dive_trip *dt = m_dive->divetrip;
if (dt) {
- QString numDives = tr("%1 dive(s)").arg(dt->nrdives);
+ QString numDives = tr("(%n dive(s))", "", dt->nrdives);
QString title(dt->location);
if (title.isEmpty()) {
// so use the date range
@@ -350,7 +350,7 @@ QString DiveObjectHelper::tripMeta() const
else
title = firstMonth + " " + firstYear + " - " + lastMonth + " " + lastYear;
}
- ret = QString::number((quint64)m_dive->divetrip, 16) + QLatin1Literal("::") + QStringLiteral("%1 (%2)").arg(title, numDives);
+ ret = QString::number((quint64)m_dive->divetrip, 16) + QLatin1Literal("::") + QStringLiteral("%1 %2").arg(title, numDives);
}
return ret;
}