summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoystick
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-26 22:13:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-26 22:15:20 +0100
commit0b56957297167538addd330e699e2e3cd2731d68 (patch)
tree7718aacad23f2800db8a53af9f2d4970bed9c992 /proto-vjoystick
parentc8d8702431e5b4fb275e9952d59efac69ca00960 (diff)
compat: use gettext convention for tr()
Diffstat (limited to 'proto-vjoystick')
-rw-r--r--proto-vjoystick/vjoystick.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp
index 3da748bd..a0e5b5b9 100644
--- a/proto-vjoystick/vjoystick.cpp
+++ b/proto-vjoystick/vjoystick.cpp
@@ -95,6 +95,14 @@ LONG handle::to_axis_value(unsigned axis_id, double val)
vjoystick_proto::vjoystick_proto()
{
+}
+
+vjoystick_proto::~vjoystick_proto()
+{
+}
+
+module_status vjoystick_proto::initialize()
+{
if (h.get_state() != state_success)
{
QMessageBox msgbox;
@@ -119,24 +127,17 @@ vjoystick_proto::vjoystick_proto()
QDesktopServices::openUrl(QUrl(project_site_url, QUrl::StrictMode));
}
}
-}
-vjoystick_proto::~vjoystick_proto()
-{
-}
-
-module_status vjoystick_proto::initialize()
-{
switch (h.get_state())
{
case state_notent:
- return error("vjoystick #1 doesn't exist");
+ return error(_("vjoystick not installed or disabled"));
case state_fail:
- return error("can't initialize vjoystick");
+ return error(_("can't initialize vjoystick"));
case state_success:
return status_ok();
default:
- return error("unknown error");
+ return error(_("unknown error"));
}
}