From 47760a21c54f4695826210d1c23637b1cab8c179 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 15 Mar 2019 03:19:01 +0100 Subject: api: add missing translation --- api/lang/nl_NL.ts | 7 +++++++ api/lang/ru_RU.ts | 7 +++++++ api/lang/stub.ts | 7 +++++++ api/lang/zh_CN.ts | 7 +++++++ api/plugin-api.cpp | 2 +- api/plugin-api.hpp | 3 +++ 6 files changed, 32 insertions(+), 1 deletion(-) (limited to 'api') 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 @@ + + module_status_mixin + + Unknown error + + + 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 @@ + + module_status_mixin + + Unknown error + + + 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 @@ + + module_status_mixin + + Unknown error + + + 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 @@ + + module_status_mixin + + Unknown error + + + 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 #include #include +#include #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 -- cgit v1.2.3