Debian Codegraph @

tests/auto/linguist/lupdate/testdata/good/parseqml3/main.qml

raw
1 import QtQuick
2
3 Window {
4 id: root
5 width: 640
6 height: 480
7 visible: true
8
9 Column {
10 Text {
11 text: qsTr("text with positional arguments is allowed $1 %2").arg(root.width).arg(root.height)
12 }
13 Text {
14 text: qsTr(`templated literal without arguments is allowed`)
15 }
16 Text {
17 text: `${qsTr("translate command inside templated literal is allowed")}`
18 }
19 Text {
20 text: qsTr(`templated literal with arguments is not allowed ${root.width}, ${root.height}`)
21 }
22 }
23 }