-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
6.10.0 Beta3
-
None
The lupdate tool itself as well as the CMake target remove the context name from our ts files. It is working fine with 6.9.2 - but with 6.10 BETA 3 all context values are removed.
For example one of our ts-files:
- With Qt 6.9.2
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="de" sourcelanguage="xxa"> <context> <name>ScannerDemo</name> <message id="SD_AI"> <location filename="../../src/uiModel.cpp" line="303"/> <source>AI</source> <extracomment>GS1 AI (application identifier)</extracomment> <translation type="unfinished">AI</translation> </message>
- With Qt 6.10 BETA 3
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="de" sourcelanguage="xxa"> <context> <name></name> <message id="SD_AI"> <location filename="../../src/uiModel.cpp" line="303"/> <source>AI</source> <extracomment>GS1 AI (application identifier)</extracomment> <translation type="unfinished">AI</translation> </message>
This happens due to the fact that we use a named translation context as well as an identifier. For example:
//= SD_BUTTON_APPLY text: qsTranslate("ScannerDemo", "Apply")
If we remove the identifier the generated ts file contains a new context with name ScannerDemo in Qt 6.10 BETA3.
For Gerrit Dashboard: QTBUG-139769 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
674160,10 | linguist docs: deprecate //= comments in documentation | dev | qt/qtdoc | Status: NEW | 0 | 0 |
674196,3 | lupdate and lrelease: allow setting IDs using metastring | dev | qt/qttools | Status: NEW | 0 | +1 |
674211,2 | lupdate: deprecate //= meta string | dev | qt/qttools | Status: NEW | 0 | 0 |