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