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-simconnect/ftnoir_protocol_sc.cpp | 2 +- proto-simconnect/ftnoir_protocol_sc.h | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'proto-simconnect') diff --git a/proto-simconnect/ftnoir_protocol_sc.cpp b/proto-simconnect/ftnoir_protocol_sc.cpp index 6a695cb1..05cc3d0b 100644 --- a/proto-simconnect/ftnoir_protocol_sc.cpp +++ b/proto-simconnect/ftnoir_protocol_sc.cpp @@ -170,7 +170,7 @@ module_status simconnect::initialize() return error(tr("dll load failed -- %1").arg(SCClientLib.errorString())); } else - return error(_("can't load SDK -- check selected simconnect version")); + return error(tr("can't load SDK -- check selected simconnect version")); } simconnect_open = (importSimConnect_Open) SCClientLib.resolve("SimConnect_Open"); diff --git a/proto-simconnect/ftnoir_protocol_sc.h b/proto-simconnect/ftnoir_protocol_sc.h index 6f9a908f..6932bfc8 100644 --- a/proto-simconnect/ftnoir_protocol_sc.h +++ b/proto-simconnect/ftnoir_protocol_sc.h @@ -43,8 +43,9 @@ public: module_status initialize() override; void pose(const double* headpose); void handle(); - QString game_name() { - return otr_tr("FS2004/FSX"); + QString game_name() + { + return tr("FS2004/FSX"); } private: enum { @@ -110,7 +111,8 @@ private slots: class simconnectDll : public Metadata { -public: - QString name() { return otr_tr("Microsoft FSX SimConnect"); } + Q_OBJECT + + QString name() { return tr("Microsoft FSX SimConnect"); } QIcon icon() { return QIcon(":/images/fsx.png"); } }; -- cgit v1.2.3