Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
5.15.1
Description
If I use qsTr with conditional operator, it doesn't translate the string
Text{
property bool checked: true
text: checked? qsTr("Deselect all") : qsTr("Select all")
}
This is the workaround
Text{
property bool checked: true
property string deselectAllString: qsTr("Deselect all")
property string selectAllString: qsTr("Select all")
text: checked? deselectAllString : selectAllString
}