From 97f74d1e7b37cf15d4763999e1287a665eeedcec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 9 Dec 2017 18:19:15 +0100 Subject: many: use otr_tr for non-qobject translation I haven't even compile-tested Linux and OSX-specific bits. --- proto-fsuipc/ftnoir_protocol_fsuipc.cpp | 2 +- proto-fsuipc/ftnoir_protocol_fsuipc.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'proto-fsuipc') diff --git a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp index b5259581..fba893bc 100644 --- a/proto-fsuipc/ftnoir_protocol_fsuipc.cpp +++ b/proto-fsuipc/ftnoir_protocol_fsuipc.cpp @@ -149,7 +149,7 @@ module_status fsuipc::check_status() FSUIPCLib.setFileName( s.LocationOfDLL ); if (FSUIPCLib.load() != true) - return error(QCoreApplication::translate("fsuipc", "Can't load fsuipc at '%1'").arg(s.LocationOfDLL)); + return error(otr_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 54171ce7..bbfd265b 100644 --- a/proto-fsuipc/ftnoir_protocol_fsuipc.h +++ b/proto-fsuipc/ftnoir_protocol_fsuipc.h @@ -52,7 +52,7 @@ public: ~fsuipc() override; module_status check_status() override; void pose(const double* headpose); - QString game_name() { return QCoreApplication::translate("fsuipc", "Microsoft Flight Simulator X"); } + QString game_name() { return otr_tr("Microsoft Flight Simulator X"); } private: QLibrary FSUIPCLib; double prevPosX, prevPosY, prevPosZ, prevRotX, prevRotY, prevRotZ; @@ -81,7 +81,7 @@ private slots: class fsuipcDll : public Metadata { public: - QString name() { return QString(QCoreApplication::translate("fsuipcDll", "FSUIPC -- Microsoft FS2002/FS2004")); } + QString name() { return otr_tr("FSUIPC -- Microsoft FS2002/FS2004"); } QIcon icon() { return QIcon(":/images/fs9.png"); } }; -- cgit v1.2.3