Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0
-
-
506cac019 (dev), d5b6d0a4b (6.8), 1e1dd0631 (6.7)
Description
to reproduce, use the QML i18n example:
$ cp -r ~/Qt/Examples/Qt-6.6.1/qml/qml-i18n . $ cd qml-i18n $ mkdir build && cd build $ ~/Qt/6.7.0/gcc_64/bin/qt-cmake .. && ninja && ninja update_translations && cat ../i18n/qml_fr.ts
this displays at the end
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="fr" sourcelanguage="en"> <context> <name>qml-i18n</name> <message> <location filename="../qml-i18n.qml" line="+21"/> <location filename="../build/translated/qml-i18n.qml" line="+21"/> <source>Hello</source> <translation>Bonjour</translation> </message> </context> </TS>
with 6.6.1 we get
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="fr" sourcelanguage="en"> <context> <name>qml-i18n</name> <message> <location filename="../qml-i18n.qml" line="+21"/> <location/> <source>Hello</source> <translation>Bonjour</translation> </message> </context> </TS>
which has an extra empty location, which is also weird.
Attachments
Issue Links
- is duplicated by
-
QTBUG-127791 Generated TS Files contain multiple filename attributes for same translation string
- Closed
- relates to
-
QTBUG-128604 Qt Linguist requires to be restarted to correctly display the updated source code information
- Open
For Gerrit Dashboard: QTBUG-124764 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
583376,2 | CMake: Exclude QML *_tooling targets from i18n | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
583404,2 | CMake: Exclude QML *_tooling targets from i18n | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
583442,2 | CMake: Exclude QML *_tooling targets from i18n | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |