summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/lang/nl_NL.ts7
-rw-r--r--api/lang/ru_RU.ts7
-rw-r--r--api/lang/stub.ts7
-rw-r--r--api/lang/zh_CN.ts7
-rw-r--r--api/plugin-api.cpp2
-rw-r--r--api/plugin-api.hpp3
6 files changed, 32 insertions, 1 deletions
diff --git a/api/lang/nl_NL.ts b/api/lang/nl_NL.ts
index 9e739505..91ba449c 100644
--- a/api/lang/nl_NL.ts
+++ b/api/lang/nl_NL.ts
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="nl_NL">
+<context>
+ <name>module_status_mixin</name>
+ <message>
+ <source>Unknown error</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
</TS>
diff --git a/api/lang/ru_RU.ts b/api/lang/ru_RU.ts
index f62cf2e1..efaaaa47 100644
--- a/api/lang/ru_RU.ts
+++ b/api/lang/ru_RU.ts
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="ru_RU">
+<context>
+ <name>module_status_mixin</name>
+ <message>
+ <source>Unknown error</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
</TS>
diff --git a/api/lang/stub.ts b/api/lang/stub.ts
index 6401616d..d29cce1b 100644
--- a/api/lang/stub.ts
+++ b/api/lang/stub.ts
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
+<context>
+ <name>module_status_mixin</name>
+ <message>
+ <source>Unknown error</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
</TS>
diff --git a/api/lang/zh_CN.ts b/api/lang/zh_CN.ts
index 6401616d..d29cce1b 100644
--- a/api/lang/zh_CN.ts
+++ b/api/lang/zh_CN.ts
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
+<context>
+ <name>module_status_mixin</name>
+ <message>
+ <source>Unknown error</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
</TS>
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp
index b2329f4b..d1e0d010 100644
--- a/api/plugin-api.cpp
+++ b/api/plugin-api.cpp
@@ -62,7 +62,7 @@ module_status module_status_mixin::status_ok() { return {}; }
module_status module_status_mixin::error(const QString& error)
{
- return module_status(error.isEmpty() ? "Unknown error" : error);
+ return module_status(error.isEmpty() ? tr("Unknown error") : error);
}
module_status ITracker::status_ok()
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp
index 3fd605b2..0f92c6e5 100644
--- a/api/plugin-api.hpp
+++ b/api/plugin-api.hpp
@@ -14,6 +14,7 @@
#include <QIcon>
#include <QWidget>
#include <QDialog>
+#include <QCoreApplication>
#include "compat/simple-mat.hpp"
#include "compat/tr.hpp"
@@ -111,6 +112,8 @@ struct OTR_API_EXPORT module_status_mixin
virtual module_status initialize() = 0; // where to return from
virtual ~module_status_mixin();
+
+ Q_DECLARE_TR_FUNCTIONS(module_status_mixin)
};
// implement this in filters