Debian Codegraph @

tests/auto/linguist/lupdate/testdata/good/parsejscontexts/main.js

raw
1 // No context specified, default should be used.
2 qsTr("One");
3 QT_TR_NOOP("Two");
4
5 // TRANSLATOR Foo
6 qsTr("Three");
7 QT_TR_NOOP("Four");
8
9 // TRANSLATOR Bar
10 qsTr("Five");
11
12 /*
13 TRANSLATOR Baz
14 This is a comment to the translator.
15 */
16 QT_TR_NOOP("Six");
17
18 // TRANSLATOR Foo.Bar
19 qsTr("Seven");
20
21 /* TRANSLATOR Bar::Baz */
22 QT_TR_NOOP("Eight");
23
24 // qsTranslate() context is not affected.
25 qsTranslate("Foo", "Nine");
26
27 // Empty context.
28 // TRANSLATOR
29 qsTr("Ten");
30
31 // setting context with TRANSLATOR comment is not supported on the QML side
32 // The support on the lupdate side has been removed