Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.1
-
None
-
Windows MSVC2015, Qt5.9.1, CMake 3.9.0
-
ba7fe8fe13fc4984b4cd162df1f3dafa92233664
Description
*.ts files with a naming pattern containing multiple dots will result in the qt5_add_translation macro producing an incorrect list of *.qm files, since everything after the first dot is taken as the file extension (instead of the last dot).
The QTranslator::load documentation states that a naming pattern like 'foo.fr_ca.qm' should be possible, but passing 'foo.fr_ca.ts' to qt5_add_translation will produce a list containing only 'foo.qm'.
If multiple *.ts files with the same naming pattern are passed to the macro the resulting list will contain 'foo.qm' multiple times, leading to CMake errors.
The issue was observed with Qt5.9.1 but checking the history of Qt5LinguistToolsMacros.cmake it looks like every release starting from when those macros where added is affected.
Attachments
For Gerrit Dashboard: QTBUG-64317 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
210834,2 | Fix qt5_add_translation macro to return correct file names | 5.9 | qt/qttools | Status: MERGED | +2 | 0 |