summaryrefslogtreecommitdiffhomepage
path: root/proto-iokit-foohid/iokitprotocol.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-09 18:19:15 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-09 18:22:04 +0100
commit97f74d1e7b37cf15d4763999e1287a665eeedcec (patch)
tree752b5fce78d2d4d74e0934712dbbd8fd3fb8d72d /proto-iokit-foohid/iokitprotocol.cpp
parent4f9c633bc9a661fbeb367e950f6789d8de6782e6 (diff)
many: use otr_tr for non-qobject translation
I haven't even compile-tested Linux and OSX-specific bits.
Diffstat (limited to 'proto-iokit-foohid/iokitprotocol.cpp')
-rw-r--r--proto-iokit-foohid/iokitprotocol.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/proto-iokit-foohid/iokitprotocol.cpp b/proto-iokit-foohid/iokitprotocol.cpp
index 693ce31e..d3f0d2c9 100644
--- a/proto-iokit-foohid/iokitprotocol.cpp
+++ b/proto-iokit-foohid/iokitprotocol.cpp
@@ -10,6 +10,8 @@
#include "foohidjoystick.h"
#include "iokitprotocoldialog.h"
+#include "compat/macros.hpp"
+
#include <QDebug>
IOKitProtocol::IOKitProtocol()
@@ -23,14 +25,14 @@ IOKitProtocol::IOKitProtocol()
module_status IOKitProtocol::check_status()
{
if (!joystick)
- return QCoreApplication::translate("foohid", "Load failure");
+ return otr_tr("Load failure");
if (joystick->hasError())
{
QString msg = joystick->errorMessage();
if (msg.isEmpty())
- msg = QCoreApplication::translate("foohid", "Unknown error");
+ msg = otr_tr("Unknown error");
return error(msg);
}