-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.10.0 Beta3
-
None
-
-
b5059a968 (dev), 753517855 (6.10), af1622c88 (6.10.0), 480007766 (dev), 362a2e076 (6.10), 2b2d4cbe6 (dev), 9de9b1bd6 (6.10)
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.