Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7.1
-
None
-
-
a336ae60c (dev)
Description
<Issue>
.ts files generated by lupdate for the id-based translation project with qsTrId() do not have a data for <name> attribute under the <context>.
Here is the .ts file generated from the id-based project. Line 5 doesn't have a data.
Here is the .ts file generated from the qsTr() project. Line 5 has a data "Main."
<Reproduction Step>
(1) Clone https://git.qt.io/mikio_hirai/qstrid_not_generating_context/-/tree/master?ref_type=heads
(2) Checkout to the master branch
(3) Checkout to c125e0ab8e98ed12491c8456c5cd3743a776a6f5
(4) Run lupdate on the project.
C:\Qt\6.7.1\msvc2019_64\bin\lupdate.exe . -extensions qml -ts qml_ja_JP.ts
<Expected Result>
The generated qml_ja_JP.ts file has a value "Main" in the <name> attribute under <context>.
<Actual Result>
The generated qml_ja_JP.ts file does not have a value in the <name> attribute under <context>.
<Workaround>
Manually edit .ts file to add the context value.
<Implication>
No value in <name> under <context> shows "unnamed context" to the Context.