diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-26 22:13:52 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-26 22:15:20 +0100 |
commit | 0b56957297167538addd330e699e2e3cd2731d68 (patch) | |
tree | 7718aacad23f2800db8a53af9f2d4970bed9c992 /api/plugin-api.cpp | |
parent | c8d8702431e5b4fb275e9952d59efac69ca00960 (diff) |
compat: use gettext convention for tr()
Diffstat (limited to 'api/plugin-api.cpp')
-rw-r--r-- | api/plugin-api.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp index eed377b0..6820ff2c 100644 --- a/api/plugin-api.cpp +++ b/api/plugin-api.cpp @@ -1,4 +1,5 @@ #include "plugin-api.hpp" +#include "compat/macros.hpp" using namespace plugin_api::detail; @@ -66,4 +67,7 @@ module_status::module_status(const QString& error) : error(error) {} module_status module_status_mixin::status_ok() { return module_status(); } -module_status module_status_mixin::error(const QString& error) { return module_status(error); } +module_status module_status_mixin::error(const QString& error) +{ + return module_status(error.isEmpty() ? QString(_("Unknown error")) : error); +} |