Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
5.12.0, 5.12.1
Description
Hi ,
I create two translation files , English and Chinese file and use retranslate to change language dynamically.
Here is simple code
Rectangle { width: 100 height: 100 color: "yellow" property bool showText: false Text { text: parent.showText ? qsTr("text") : qsTr("no") } MouseArea { anchors.fill: parent onClicked: { parent.showText = !parent.showText } } }
Firstly I load my project in Chinese , then I change language to English .
I find when I call retranslate to chang language , the text will be translated to English correctly.
but when I change the property showText from false to true , it will show Chinese again.