summaryrefslogtreecommitdiffhomepage
path: root/proto-flightgear/ftnoir_protocol_fg.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:23:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:23:52 +0200
commitc0165f8b48852a1aca782d606ba4f1ea48eee6ba (patch)
tree433441689808ca741889b078407bc49fade746de /proto-flightgear/ftnoir_protocol_fg.h
parenteb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (diff)
modules: now use i18n
Diffstat (limited to 'proto-flightgear/ftnoir_protocol_fg.h')
-rw-r--r--proto-flightgear/ftnoir_protocol_fg.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/proto-flightgear/ftnoir_protocol_fg.h b/proto-flightgear/ftnoir_protocol_fg.h
index f92c3072..45cd0cad 100644
--- a/proto-flightgear/ftnoir_protocol_fg.h
+++ b/proto-flightgear/ftnoir_protocol_fg.h
@@ -15,6 +15,7 @@
#include <QMessageBox>
#include "api/plugin-api.hpp"
#include "options/options.hpp"
+#include "compat/tr.hpp"
using namespace options;
// x,y,z position in meters, heading, pitch and roll in degrees
@@ -38,11 +39,13 @@ struct settings : opts {
{}
};
-class flightgear : public IProtocol
+class flightgear : TR, public IProtocol
{
+ Q_OBJECT
+
public:
void pose(const double *headpose);
- QString game_name() { return otr_tr("FlightGear"); }
+ QString game_name() { return tr("FlightGear"); }
module_status initialize() override;
private:
settings s;
@@ -68,7 +71,8 @@ private slots:
class flightgearDll : public Metadata
{
-public:
- QString name() { return otr_tr("FlightGear"); }
+ Q_OBJECT
+
+ QString name() { return tr("FlightGear"); }
QIcon icon() { return QIcon(":/images/flightgear.png"); }
};