summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoystick
diff options
context:
space:
mode:
Diffstat (limited to 'proto-vjoystick')
-rw-r--r--proto-vjoystick/vjoystick.cpp8
-rw-r--r--proto-vjoystick/vjoystick.h5
2 files changed, 7 insertions, 6 deletions
diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp
index 9ff64998..1f849e11 100644
--- a/proto-vjoystick/vjoystick.cpp
+++ b/proto-vjoystick/vjoystick.cpp
@@ -99,11 +99,11 @@ vjoystick_proto::vjoystick_proto()
{
QMessageBox msgbox;
msgbox.setIcon(QMessageBox::Critical);
- msgbox.setText(QCoreApplication::translate("vjoystick_proto", "vjoystick driver missing"));
- msgbox.setInformativeText(QCoreApplication::translate("vjoystick_proto", "vjoystick won't work without the driver installed."));
+ msgbox.setText(otr_tr("vjoystick driver missing"));
+ msgbox.setInformativeText(otr_tr("vjoystick won't work without the driver installed."));
- QPushButton* driver_button = msgbox.addButton(QCoreApplication::translate("vjoystick_proto", "Download the driver"), QMessageBox::ActionRole);
- QPushButton* project_site_button = msgbox.addButton(QCoreApplication::translate("vjoystick_proto", "Visit project site"), QMessageBox::ActionRole);
+ QPushButton* driver_button = msgbox.addButton(otr_tr("Download the driver"), QMessageBox::ActionRole);
+ QPushButton* project_site_button = msgbox.addButton(otr_tr("Visit project site"), QMessageBox::ActionRole);
msgbox.addButton(QMessageBox::Close);
(void) msgbox.exec();
diff --git a/proto-vjoystick/vjoystick.h b/proto-vjoystick/vjoystick.h
index 0eac2ed2..742d5b47 100644
--- a/proto-vjoystick/vjoystick.h
+++ b/proto-vjoystick/vjoystick.h
@@ -8,6 +8,7 @@
#pragma once
#include "ui_vjoystick.h"
#include "api/plugin-api.hpp"
+#include "compat/macros.hpp"
#include <windows.h>
@@ -55,7 +56,7 @@ public:
~vjoystick_proto() override;
module_status check_status() override;
void pose( const double *headpose ) override;
- QString game_name() override { return "Virtual joystick"; }
+ QString game_name() override { return otr_tr("Virtual joystick"); }
private:
};
@@ -74,6 +75,6 @@ private:
class vjoystick_metadata : public Metadata
{
public:
- QString name() { return QString(QCoreApplication::translate("vjoystick_metadata", "Joystick emulation -- vjoystick")); }
+ QString name() { return otr_tr("Joystick emulation -- vjoystick"); }
QIcon icon() { return QIcon(":/images/vjoystick.png"); }
};