diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-05 13:04:42 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-11-05 13:07:34 +0100 |
commit | 395d606ab74c25e3c107e59a6b0933de9bf79d20 (patch) | |
tree | 7ccc69a7956564373a0a5c41c3dc1dce2b548980 /proto-vjoystick | |
parent | dfa40a083dc3efaf665bc1f5e54633deda79a956 (diff) |
modules: make more strings translatable
Diffstat (limited to 'proto-vjoystick')
-rw-r--r-- | proto-vjoystick/vjoystick.cpp | 8 | ||||
-rw-r--r-- | proto-vjoystick/vjoystick.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp index 85fe9421..557b5e99 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("vjoystick driver missing"); - msgbox.setInformativeText("vjoystick won't work without the driver installed."); + msgbox.setText(QCoreApplication::translate("vjoystick_proto", "vjoystick driver missing")); + msgbox.setInformativeText(QCoreApplication::translate("vjoystick_proto", "vjoystick won't work without the driver installed.")); - QPushButton* driver_button = msgbox.addButton("Download the driver", QMessageBox::ActionRole); - QPushButton* project_site_button = msgbox.addButton("Visit project site", QMessageBox::ActionRole); + 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); msgbox.addButton(QMessageBox::Close); (void) msgbox.exec(); diff --git a/proto-vjoystick/vjoystick.h b/proto-vjoystick/vjoystick.h index 2d3fd378..49302030 100644 --- a/proto-vjoystick/vjoystick.h +++ b/proto-vjoystick/vjoystick.h @@ -74,6 +74,6 @@ private: class vjoystick_metadata : public Metadata { public: - QString name() { return QString("Joystick emulation -- vjoystick"); } + QString name() { return QString(QCoreApplication::translate("vjoystick_metadata", "Joystick emulation -- vjoystick")); } QIcon icon() { return QIcon(":/images/vjoystick.png"); } }; |