From c0165f8b48852a1aca782d606ba4f1ea48eee6ba Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 5 Apr 2018 03:23:38 +0200 Subject: modules: now use i18n --- proto-libevdev/ftnoir_protocol_libevdev.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'proto-libevdev') diff --git a/proto-libevdev/ftnoir_protocol_libevdev.h b/proto-libevdev/ftnoir_protocol_libevdev.h index 7cf59053..4c220df4 100644 --- a/proto-libevdev/ftnoir_protocol_libevdev.h +++ b/proto-libevdev/ftnoir_protocol_libevdev.h @@ -14,8 +14,10 @@ #include -class evdev : public IProtocol +class evdev : public TR, public IProtocol { + Q_OBJECT + public: evdev(); ~evdev() override; @@ -23,8 +25,10 @@ public: return dev != NULL; } void pose(const double *headpose); - QString game_name() { - return _("Virtual joystick for Linux"); + + QString game_name() + { + return tr("Virtual joystick for Linux"); } module_status initialize() override; @@ -37,6 +41,7 @@ private: class LibevdevControls: public IProtocolDialog { Q_OBJECT + public: LibevdevControls(); void register_protocol(IProtocol *) {} @@ -53,7 +58,8 @@ private slots: class evdevDll : public Metadata { -public: - QString name() { return _("libevdev joystick receiver"); } + Q_OBJECT + + QString name() { return tr("libevdev joystick receiver"); } QIcon icon() { return QIcon(":/images/linux.png"); } }; -- cgit v1.2.3