Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
Description
In qt_add_lrelease, rename `MANUAL` to `NO_TARGET_DEPENDENCY` or something more clear.
In qt_add_translations:
- If RESOURCE_PREFIX is not specified, by default a create a resource with a prefix set to '/i18n' to match the resource prefix picked up magically by QQmlApplicationEngine.
- Users can change the prefix to one they would like instead of the default.
- If QM_FILES_OUTPUT_VARIABLE is specified, a resource is NOT automatically created anymore, because the files are intended to be installed instead.
- If both QM_FILES_OUTPUT_VARIABLE and RESOURCE_PREFIX are specified, issue FATAL_ERROR.
Mark qt6_add_translations as Technical Preview for 6.2
Reason: We don't feel comfortable committing to this API because we don't know how the project-wide translations use case might affect it.
Add OUTPUT_TARGETS as an out_var for when qt6_add_translations is called on a static library target. This should be populated with the value of OUTPUT_TARETS set by the internal qt6_add_resource call.
Attachments
For Gerrit Dashboard: QTBUG-95180 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
360131,2 | Mark qt6_add_translations as being in technical preview | dev | qt/qttools | Status: MERGED | +2 | 0 |
360132,2 | Rename qt6_add_lrelease's MANUAL argument | dev | qt/qttools | Status: MERGED | +2 | 0 |
360133,2 | qt_add_translation: Embed .qm files into resources by default | dev | qt/qttools | Status: MERGED | +2 | 0 |
360134,2 | qt6_add_translations: Add OUTPUT_TARGETS argument | dev | qt/qttools | Status: MERGED | +2 | 0 |
360202,2 | Mark qt6_add_translations as being in technical preview | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |
360203,2 | Rename qt6_add_lrelease's MANUAL argument | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |
360205,2 | qt_add_translation: Embed .qm files into resources by default | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |
360206,2 | qt6_add_translations: Add OUTPUT_TARGETS argument | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |