diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-05 03:23:38 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-04-05 03:23:52 +0200 |
commit | c0165f8b48852a1aca782d606ba4f1ea48eee6ba (patch) | |
tree | 433441689808ca741889b078407bc49fade746de /proto-fsuipc | |
parent | eb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (diff) |
modules: now use i18n
Diffstat (limited to 'proto-fsuipc')
-rw-r--r-- | proto-fsuipc/ftnoir_protocol_fsuipc.cpp | 2 | ||||
-rw-r--r-- | proto-fsuipc/ftnoir_protocol_fsuipc.h | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp index 64a14f5f..4db85ac5 100644 --- a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp +++ b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp @@ -150,7 +150,7 @@ module_status fsuipc::initialize() FSUIPCLib.setLoadHints(QLibrary::PreventUnloadHint); if (FSUIPCLib.load() != true) - return error(_("Can't load fsuipc at '%1'").arg(s.LocationOfDLL)); + return error(tr("Can't load fsuipc at '%1'").arg(s.LocationOfDLL)); else return status_ok(); } diff --git a/proto-fsuipc/ftnoir_protocol_fsuipc.h b/proto-fsuipc/ftnoir_protocol_fsuipc.h index c0560efe..fa8bcd45 100644 --- a/proto-fsuipc/ftnoir_protocol_fsuipc.h +++ b/proto-fsuipc/ftnoir_protocol_fsuipc.h @@ -45,14 +45,16 @@ typedef struct } TFSState; #pragma pack(pop) -class fsuipc : public IProtocol +class fsuipc : public TR, public IProtocol { + Q_OBJECT + public: fsuipc(); ~fsuipc() override; module_status initialize() override; void pose(const double* headpose); - QString game_name() { return otr_tr("Microsoft Flight Simulator X"); } + QString game_name() { return tr("Microsoft Flight Simulator X"); } private: QLibrary FSUIPCLib; double prevPosX, prevPosY, prevPosZ, prevRotX, prevRotY, prevRotZ; @@ -80,8 +82,9 @@ private slots: class fsuipcDll : public Metadata { -public: - QString name() { return otr_tr("FSUIPC -- Microsoft FS2002/FS2004"); } + Q_OBJECT + + QString name() { return tr("FSUIPC -- Microsoft FS2002/FS2004"); } QIcon icon() { return QIcon(":/images/fs9.png"); } }; |