summaryrefslogtreecommitdiffhomepage
path: root/api/plugin-api.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-26 22:13:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-26 22:15:20 +0100
commit0b56957297167538addd330e699e2e3cd2731d68 (patch)
tree7718aacad23f2800db8a53af9f2d4970bed9c992 /api/plugin-api.cpp
parentc8d8702431e5b4fb275e9952d59efac69ca00960 (diff)
compat: use gettext convention for tr()
Diffstat (limited to 'api/plugin-api.cpp')
-rw-r--r--api/plugin-api.cpp6
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);
+}