Changeset 6e785a7 in subsurface


Ignore:
Timestamp:
Jun 22, 2017, 4:19:23 AM (3 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
ba2b5d85
Parents:
ea218b9d
git-author:
Dirk Hohndel <dirk@…> (06/22/17 03:19:17)
git-committer:
Dirk Hohndel <dirk@…> (06/22/17 04:19:23)
Message:

QML UI: correctly build plural translation

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/subsurface-qt/DiveObjectHelper.cpp

    r8bee7e6 r6e785a7  
    334334        struct dive_trip *dt = m_dive->divetrip;
    335335        if (dt) {
    336                 QString numDives = tr("%1 dive(s)").arg(dt->nrdives);
     336                QString numDives = tr("(%n dive(s))", "", dt->nrdives);
    337337                QString title(dt->location);
    338338                if (title.isEmpty()) {
     
    351351                                title = firstMonth + " " + firstYear + " - " + lastMonth + " " + lastYear;
    352352                }
    353                 ret = QString::number((quint64)m_dive->divetrip, 16) + QLatin1Literal("::") + QStringLiteral("%1 (%2)").arg(title, numDives);
     353                ret = QString::number((quint64)m_dive->divetrip, 16) + QLatin1Literal("::") + QStringLiteral("%1 %2").arg(title, numDives);
    354354        }
    355355        return ret;
Note: See TracChangeset for help on using the changeset viewer.