Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
75769767ac (qt/qtdeclarative/dev) 75769767ac (qt/tqtc-qtdeclarative/dev)
Description
qmltc must be able to correctly handle translation bindings such as:
Text { text: qsTr("hello") } // should be translated in German to "hallo" (?)
There are several ways on how to create translation bindings. The interesting functions are part of the Qt QML. The exhaustive list should be:
- string qsTr(string sourceText, string disambiguation, int n)
- string qsTrId(string id, int n)
- string qsTrIdNoOp(string id)
- string qsTrNoOp(string sourceText, string disambiguation)
- string qsTranslate(string context, string sourceText, string disambiguation, int n)
- string qsTranslateNoOp(string context, string sourceText, string disambiguation)
At the code level, qmltc should be able to compile QQmlJSMetaPropertyBinding (coming from QQmlJSScope) into something meaningful when the binding type is one of
{Translation, TranslationById}.
Attachments
Issue Links
- is required for
-
QTBUG-91956 (qmltc) Support QML language and QQmlEngine related features
- Closed
- relates to
-
QTBUG-105538 qmltc evolution collection task
- Open
Gerrit Reviews
For Gerrit Dashboard: QTBUG-104637 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
420838,25 | qmltc: translation binding support | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
421791,3 | WIP: qmltc: Track TranslationDataIndices for translation bindings | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |