summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptengine/translatable2.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptengine/translatable2.js')
-rw-r--r--tests/auto/qscriptengine/translatable2.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/qscriptengine/translatable2.js b/tests/auto/qscriptengine/translatable2.js
new file mode 100644
index 0000000..eee66f1
--- /dev/null
+++ b/tests/auto/qscriptengine/translatable2.js
@@ -0,0 +1,9 @@
+qsTr("Three");
+qsTranslate("BarContext", "Four");
+
+var celebration_strings = [
+ QT_TR_NOOP("Happy birthday!"),
+ QT_TRANSLATE_NOOP("BarContext", "Congratulations!")
+];
+
+qsTr("Three", "not the same three");