Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0
-
b53a9a370 (dev), c08786494 (6.7), ee68c27af (tqtc/lts-6.5)
Description
This example tells to use .arg(), but it does not work like that:
https://doc.qt.io/qt-6.5/i18n-source-translation.html#qml-example
Instead it should probably be:
text: qsTr("%n message(s) saved", "", total)
Attachments
Issue Links
- is duplicated by
-
QTBUG-124480 Documentation's example about handling plural code in QML seems wrong
-
- Closed
-
For Gerrit Dashboard: QTBUG-124844 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
558931,2 | Correct the qsTr() plural form documentation | dev | qt/qtdoc | Status: MERGED | +2 | 0 |
559192,2 | Correct the qsTr() plural form documentation | 6.7 | qt/qtdoc | Status: MERGED | +2 | 0 |
559388,2 | Correct the qsTr() plural form documentation | tqtc/lts-6.5 | qt/tqtc-qtdoc | Status: MERGED | +2 | 0 |