-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7.0
-
00a4a1814 (dev), 460b3d02e (6.8), c509a54f2 (tqtc/lts-6.5)
-
DaVinci 103, DaVinci 104, DaVinci 105
link: https://doc.qt.io/qt-6/qml-qtqml-qt.html#qsTrId-method
I think we would need example snippets for
If n >= 0, all occurrences of %n in the resulting string are replaced with a decimal representation of n. In addition, depending on n's value, the translation text may vary.
and
\begincomment% <string> \endcomment
Although the latter one is more obvious compared to the former one, it'd still be nice to have one here too to make the documentation easier for readers.
- relates to
-
QTBUG-127795 Add a snippet in the documentation for the use of the parameter n in qsTr()
-
- Closed
-
-
QTBUG-127796 Describe the point of using qsTranslate() instead of qsTr()
-
- Closed
-
| For Gerrit Dashboard: QTBUG-127794 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 588757,9 | Doc: Add source string template code snippet for qsTrId | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 596723,2 | Doc: Add source string template code snippet for qsTrId | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 596776,2 | Doc: Add source string template code snippet for qsTrId | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
| 601547,1 | Doc: Add source string template code snippet for qsTrId | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |