Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1
-
None
-
Windows 10, Ubuntu 22.04, Lubuntu 20.04
-
-
10488623e (dev), 6a56aad6d (6.5), fe97c27a4 (6.4), 196bf75d6 (tqtc/lts-6.2)
Description
In Qt Creator:
I have checked "programmname_lupdate" in "Project settings" , "Build steps", "Details",
lupdate is running every time the program is compiled.
{{Updating '../code/i18n/_streamcapture2_it_IT.ts'... Found 432 source text(s) (0 new and 432 already existing) Updating '../code/i18n/_streamcapture2_sv_SE.ts'... Found 432 source text(s) (0 new and 432 already existing) Updating '../code/i18n/_streamcapture2_template_xx_XX.ts'... Found 432 source text(s) (0 new and 432 already existing)}}
The problem is (in the ts file)
<message> <location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><location filename="../downloadlistdialog.cpp" line="108"/><source>Save as text file</source><translation>Spara som textfil</translation> </message>
A new identical row is created every time!
In CMakeLists.txt
set(TS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/i18n/_streamcapture2_it_IT.ts ${CMAKE_CURRENT_SOURCE_DIR}/i18n/_streamcapture2_sv_SE.ts ${CMAKE_CURRENT_SOURCE_DIR}/i18n/_streamcapture2_template_xx_XX.ts ) qt_add_lupdate(streamcapture2 TS_FILES ${TS_FILES})}}
Attachments
For Gerrit Dashboard: QTBUG-109316 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
456689,2 | CMake: Don't pass .ts files as sources to lupdate | dev | qt/qttools | Status: MERGED | +2 | 0 |
456704,2 | CMake: Don't pass .ts files as sources to lupdate | 6.5 | qt/qttools | Status: MERGED | +2 | 0 |
456705,2 | CMake: Don't pass .ts files as sources to lupdate | 6.4 | qt/qttools | Status: MERGED | +2 | 0 |
456742,2 | CMake: Don't pass .ts files as sources to lupdate | tqtc/lts-6.2 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |