diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-15 03:19:01 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-03-15 03:19:01 +0100 |
commit | 47760a21c54f4695826210d1c23637b1cab8c179 (patch) | |
tree | 3d90b69a24a010f626daf32dc9b6e7e73eb8f189 /api | |
parent | b997b26b3358082386620622b6017b8ce8acde45 (diff) |
api: add missing translation
Diffstat (limited to 'api')
-rw-r--r-- | api/lang/nl_NL.ts | 7 | ||||
-rw-r--r-- | api/lang/ru_RU.ts | 7 | ||||
-rw-r--r-- | api/lang/stub.ts | 7 | ||||
-rw-r--r-- | api/lang/zh_CN.ts | 7 | ||||
-rw-r--r-- | api/plugin-api.cpp | 2 | ||||
-rw-r--r-- | api/plugin-api.hpp | 3 |
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 |