-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.4.0 Beta4
-
None
-
-
586cb3b95 (6.5), 3c66def23 (dev), c76678815 (6.5)
qttranslations defines catalogs that collect the translations of a set of modules.
Example:
add_ts_targets(qtdeclarative DIRECTORIES qtdeclarative/src EXCLUDE declarative/src/quickcontrols2/designer)
windeployqt hardcodes the mapping "module -> catalog" like this:
static QtModuleEntry qtModuleEntries[] = { ... { QtQmlModule, "qml", "Qt6Qml", "qtdeclarative" }, { QtQuickModule, "quick", "Qt6Quick", "qtdeclarative" }, ... }
Other deployment methods also require such a mapping - unless they just deploy all translations.
The mapping in windeployqt is already not quite up-to-date. We should not have these hard-coded mappings. There should be some way to have qttranslations as authoritative source for the module -> catalog mapping.
Ideally, the table at https://doc.qt.io/qt-6/internationalization.html#available-catalogs would also be automatically updated based on the information in qttranslations.
For Gerrit Dashboard: QTBUG-106342 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
447298,5 | CMake: Create a translations/catalogs.json file | 6.5 | qt/qttranslations | Status: MERGED | +2 | 0 |
450281,13 | windeployqt: Remove hard-coded information about modules and plugins | dev | qt/qtbase | Status: MERGED | +2 | 0 |
458697,3 | windeployqt: Remove hard-coded information about modules and plugins | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |