diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-06-29 15:06:15 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-08-23 08:25:41 (GMT) |
commit | d1c482180352aeecabcc8d9f65ab3883175c75c3 (patch) | |
tree | d5ba94d6b69918d7942b0d7bb1cf853348317689 /tests/auto/qscriptengine/idtranslatable.js | |
parent | a5867a413d14f307c0f20b7080840b15bd8743e4 (diff) | |
download | Qt-d1c482180352aeecabcc8d9f65ab3883175c75c3.zip Qt-d1c482180352aeecabcc8d9f65ab3883175c75c3.tar.gz Qt-d1c482180352aeecabcc8d9f65ab3883175c75c3.tar.bz2 |
Make qsTrId() / QT_TRID_NOOP() accessible from QtScript
QScriptEngine::installTranslatorFunctions() now installs
wrapper functions for qsTrId and QT_TRID_NOOP (similar to
the existing ones for tr() and translate()).
Task-number: QTBUG-8454
Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'tests/auto/qscriptengine/idtranslatable.js')
-rw-r--r-- | tests/auto/qscriptengine/idtranslatable.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qscriptengine/idtranslatable.js b/tests/auto/qscriptengine/idtranslatable.js new file mode 100644 index 0000000..554ca88 --- /dev/null +++ b/tests/auto/qscriptengine/idtranslatable.js @@ -0,0 +1,5 @@ +qsTrId("qtn_foo_bar"); + +var more_greeting_strings = [ QT_TRID_NOOP("qtn_needle"), QT_TRID_NOOP("qtn_haystack") ]; + +qsTrId("qtn_bar_baz", 10); |