mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: correctly build plural translation
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ea218b9d24
commit
6e785a7bfc
1 changed files with 2 additions and 2 deletions
|
@ -333,7 +333,7 @@ QString DiveObjectHelper::tripMeta() const
|
||||||
QString ret = EMPTY_DIVE_STRING;
|
QString ret = EMPTY_DIVE_STRING;
|
||||||
struct dive_trip *dt = m_dive->divetrip;
|
struct dive_trip *dt = m_dive->divetrip;
|
||||||
if (dt) {
|
if (dt) {
|
||||||
QString numDives = tr("%1 dive(s)").arg(dt->nrdives);
|
QString numDives = tr("(%n dive(s))", "", dt->nrdives);
|
||||||
QString title(dt->location);
|
QString title(dt->location);
|
||||||
if (title.isEmpty()) {
|
if (title.isEmpty()) {
|
||||||
// so use the date range
|
// so use the date range
|
||||||
|
@ -350,7 +350,7 @@ QString DiveObjectHelper::tripMeta() const
|
||||||
else
|
else
|
||||||
title = firstMonth + " " + firstYear + " - " + lastMonth + " " + lastYear;
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue