summaryrefslogtreecommitdiffhomepage
path: root/proto-flightgear
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
parenteb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (diff)
modules: now use i18n
Diffstat (limited to 'proto-flightgear')
-rw-r--r--proto-flightgear/ftnoir_protocol_fg.cpp2
-rw-r--r--proto-flightgear/ftnoir_protocol_fg.h12
2 files changed, 9 insertions, 5 deletions
diff --git a/proto-flightgear/ftnoir_protocol_fg.cpp b/proto-flightgear/ftnoir_protocol_fg.cpp
index b36a2f47..c06feefb 100644
--- a/proto-flightgear/ftnoir_protocol_fg.cpp
+++ b/proto-flightgear/ftnoir_protocol_fg.cpp
@@ -30,7 +30,7 @@ module_status flightgear::initialize()
if (outSocket.bind(QHostAddress::Any, 0, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint))
return status_ok();
else
- return error(otr_tr("Can't bind to [%1.%2.%3.%4]:%5")
+ return error(tr("Can't bind to [%1.%2.%3.%4]:%5")
.arg(s.ip1).arg(s.ip2).arg(s.ip3).arg(s.ip4)
.arg(s.port));
}
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"); }
};