Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.6, 6.2.0 Beta4
-
-
153db2fedc (qt/qttools/dev) 44326eb79e (qt/qttools/6.3) fcb679fda3 (qt/qttools/6.2) fcb679fda3 (qt/tqtc-qttools/6.2) 44326eb79e (qt/tqtc-qttools/6.3) 153db2fedc (qt/tqtc-qttools/dev) a100f74851 (qt/tqtc-qttools/5.15) fcb679fda3 (qt/qttools/6.2.4)
Description
Bug report results from a forum post: https://forum.qt.io/topic/130308/manage-translations-with-cmake
When using qt5_create_translation(), calling make clean (or e.g. execution 'Rebuild all' in QtCreator) will remove the ts files in the source directory.
The reason for this is that the custom command to execute lupdate specifies the ts file as OUTPUT (which is correct) and therefore cmake sets the 'GENERATED' property which means the file gets deleted on make clean. Sadly this property can not be unset and I did not find a workaround.
Attachments
Issue Links
- duplicates
-
QTBUG-31860 CMake + Qt5LinguistToolsMacros.cmake: QT5_CREATE_TRANSLATION delete source ts files during clean
- Closed
-
QTBUG-41736 CMake + Qt5LinguistToolsMacros.cmake: QT5_CREATE_TRANSLATION clean deletes .ts files instead of updating
- Closed
- relates to
-
QTBUG-76410 CMake: Introduce qt_update_translation function
- Closed
-
QTBUG-107853 qt6_add_translations() deletes CMake-generated *.ts files when project is cleaned
- Closed
- resulted in
-
QTBUG-113152 [REG 5.15.8 -> 5.15.9] qt5_create_translation breaks projects with multiple same-named ts files
- Closed
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-96549 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
396194,3 | CMake: Fix qt_create_translation to not remove .ts files on "clean" | dev | qt/qttools | Status: MERGED | +2 | 0 |
396304,2 | CMake: Fix qt_create_translation to not remove .ts files on "clean" | 6.3 | qt/qttools | Status: MERGED | +2 | 0 |
396305,2 | CMake: Fix qt_create_translation to not remove .ts files on "clean" | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |
396330,3 | CMake: Fix qt_create_translation to not remove .ts files on "clean" | tqtc/lts-5.15 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |