aboutsummaryrefslogtreecommitdiff
path: root/tests/ECMPoQmToolsTest/tr_thread_test_module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ECMPoQmToolsTest/tr_thread_test_module.cpp')
-rw-r--r--tests/ECMPoQmToolsTest/tr_thread_test_module.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ECMPoQmToolsTest/tr_thread_test_module.cpp b/tests/ECMPoQmToolsTest/tr_thread_test_module.cpp
new file mode 100644
index 00000000..b9000ffa
--- /dev/null
+++ b/tests/ECMPoQmToolsTest/tr_thread_test_module.cpp
@@ -0,0 +1,12 @@
+#include <QCoreApplication>
+#include <QTextStream>
+
+#include <stdio.h>
+
+extern "C" Q_DECL_EXPORT void print_strings()
+{
+ QTextStream output(stdout);
+
+ output << QCoreApplication::translate("testcontext", "test string") << ":";
+ output << QCoreApplication::translate("testcontext", "test plural %n", 0, 5) << '\n';
+}