summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine/translatable.js
blob: c0d7ed0456149bf147d500bfe81d38d9d6a4db4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
qsTr("One");
qsTranslate("FooContext", "Two");

var greeting_strings = [
    QT_TR_NOOP("Hello"),
    QT_TRANSLATE_NOOP("FooContext", "Goodbye")
];

qsTr("One", "not the same one");

qsTr("%n message(s) saved", "", 10);
qsTranslate("FooContext", "%n fooish bar(s) found", "", "UnicodeUTF8", 10);