summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoystick/vjoystick.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:23:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-04-05 03:23:52 +0200
commitc0165f8b48852a1aca782d606ba4f1ea48eee6ba (patch)
tree433441689808ca741889b078407bc49fade746de /proto-vjoystick/vjoystick.cpp
parenteb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 (diff)
modules: now use i18n
Diffstat (limited to 'proto-vjoystick/vjoystick.cpp')
-rw-r--r--proto-vjoystick/vjoystick.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp
index e5e18157..a55f8ca4 100644
--- a/proto-vjoystick/vjoystick.cpp
+++ b/proto-vjoystick/vjoystick.cpp
@@ -115,11 +115,11 @@ module_status vjoystick_proto::initialize()
{
QMessageBox msgbox;
msgbox.setIcon(QMessageBox::Critical);
- msgbox.setText(otr_tr("vjoystick driver missing"));
- msgbox.setInformativeText(otr_tr("vjoystick won't work without the driver installed."));
+ msgbox.setText(tr("vjoystick driver missing"));
+ msgbox.setInformativeText(tr("vjoystick won't work without the driver installed."));
- 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);
+ QPushButton* driver_button = msgbox.addButton(tr("Download the driver"), QMessageBox::ActionRole);
+ QPushButton* project_site_button = msgbox.addButton(tr("Visit project site"), QMessageBox::ActionRole);
msgbox.addButton(QMessageBox::Close);
(void) msgbox.exec();
@@ -139,13 +139,13 @@ module_status vjoystick_proto::initialize()
switch (h.get_state())
{
case state_notent:
- return error(_("vjoystick not installed or disabled"));
+ return error(tr("vjoystick not installed or disabled"));
case state_fail:
- return error(_("can't initialize vjoystick"));
+ return error(tr("can't initialize vjoystick"));
case state_success:
return status_ok();
default:
- return error(_("unknown error"));
+ return error(tr("unknown error"));
}
}