summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoystick/vjoystick.h
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-vjoystick/vjoystick.h
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-vjoystick/vjoystick.h')
-rw-r--r--proto-vjoystick/vjoystick.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/proto-vjoystick/vjoystick.h b/proto-vjoystick/vjoystick.h
index 0eac2ed2..742d5b47 100644
--- a/proto-vjoystick/vjoystick.h
+++ b/proto-vjoystick/vjoystick.h
@@ -8,6 +8,7 @@
#pragma once
#include "ui_vjoystick.h"
#include "api/plugin-api.hpp"
+#include "compat/macros.hpp"
#include <windows.h>
@@ -55,7 +56,7 @@ public:
~vjoystick_proto() override;
module_status check_status() override;
void pose( const double *headpose ) override;
- QString game_name() override { return "Virtual joystick"; }
+ QString game_name() override { return otr_tr("Virtual joystick"); }
private:
};
@@ -74,6 +75,6 @@ private:
class vjoystick_metadata : public Metadata
{
public:
- QString name() { return QString(QCoreApplication::translate("vjoystick_metadata", "Joystick emulation -- vjoystick")); }
+ QString name() { return otr_tr("Joystick emulation -- vjoystick"); }
QIcon icon() { return QIcon(":/images/vjoystick.png"); }
};