aboutsummaryrefslogtreecommitdiff
path: root/backends/events/gp2xsdl
diff options
context:
space:
mode:
authorThierry Crozat2011-06-06 20:08:28 +0100
committerThierry Crozat2011-06-06 23:20:11 +0100
commit014145f240cc514ddf284f5a22b675ee775f4a9c (patch)
tree47ea54ce9531ca79bb0eaf25f9ffb6a1e101ab39 /backends/events/gp2xsdl
parent226990bb5823cacf74d0eab596718cb4146b07cb (diff)
downloadscummvm-rg350-014145f240cc514ddf284f5a22b675ee775f4a9c.tar.gz
scummvm-rg350-014145f240cc514ddf284f5a22b675ee775f4a9c.tar.bz2
scummvm-rg350-014145f240cc514ddf284f5a22b675ee775f4a9c.zip
I18N: Make some OSD messages translatable
Diffstat (limited to 'backends/events/gp2xsdl')
-rw-r--r--backends/events/gp2xsdl/gp2xsdl-events.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/backends/events/gp2xsdl/gp2xsdl-events.cpp b/backends/events/gp2xsdl/gp2xsdl-events.cpp
index 86d4de384f..5f5ff66319 100644
--- a/backends/events/gp2xsdl/gp2xsdl-events.cpp
+++ b/backends/events/gp2xsdl/gp2xsdl-events.cpp
@@ -30,6 +30,8 @@
#include "backends/platform/sdl/sdl.h"
+#include "common/translation.h"
+
// FIXME move joystick defines out and replace with confile file options
// we should really allow users to map any key to a joystick button using the keymapper.
#define JOY_DEADZONE 2200
@@ -268,11 +270,11 @@ bool GP2XSdlEventSource::handleJoyButtonDown(SDL_Event &ev, Common::Event &event
if (BUTTON_STATE_L == true) {
GPH::ToggleTapMode();
if (GPH::tapmodeLevel == TAPMODE_LEFT) {
- g_system->displayMessageOnOSD("Touchscreen 'Tap Mode' - Left Click");
+ g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Left Click"));
} else if (GPH::tapmodeLevel == TAPMODE_RIGHT) {
- g_system->displayMessageOnOSD("Touchscreen 'Tap Mode' - Right Click");
+ g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Right Click"));
} else if (GPH::tapmodeLevel == TAPMODE_HOVER) {
- g_system->displayMessageOnOSD("Touchscreen 'Tap Mode' - Hover (No Click)");
+ g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Hover (No Click)"));
}
} else {
event.kbd.keycode = Common::KEYCODE_SPACE;
@@ -292,18 +294,18 @@ bool GP2XSdlEventSource::handleJoyButtonDown(SDL_Event &ev, Common::Event &event
case BUTTON_VOLUP:
GP2X_HW::mixerMoveVolume(2);
if (GP2X_HW::volumeLevel == 100) {
- g_system->displayMessageOnOSD("Maximum Volume");
+ g_system->displayMessageOnOSD(_("Maximum Volume"));
} else {
- g_system->displayMessageOnOSD("Increasing Volume");
+ g_system->displayMessageOnOSD(_("Increasing Volume"));
}
break;
case BUTTON_VOLDOWN:
GP2X_HW::mixerMoveVolume(1);
if (GP2X_HW::volumeLevel == 0) {
- g_system->displayMessageOnOSD("Minimal Volume");
+ g_system->displayMessageOnOSD(_("Minimal Volume"));
} else {
- g_system->displayMessageOnOSD("Decreasing Volume");
+ g_system->displayMessageOnOSD(_("Decreasing Volume"));
}
break;
case BUTTON_HOLD:
@@ -312,11 +314,11 @@ bool GP2XSdlEventSource::handleJoyButtonDown(SDL_Event &ev, Common::Event &event
case BUTTON_HELP2:
GPH::ToggleTapMode();
if (GPH::tapmodeLevel == TAPMODE_LEFT) {
- g_system->displayMessageOnOSD("Touchscreen 'Tap Mode': Left Click");
+ g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Left Click"));
} else if (GPH::tapmodeLevel == TAPMODE_RIGHT) {
- g_system->displayMessageOnOSD("Touchscreen 'Tap Mode': Right Click");
+ g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Right Click"));
} else if (GPH::tapmodeLevel == TAPMODE_HOVER) {
- g_system->displayMessageOnOSD("Touchscreen 'Tap Mode': Hover (No Click)");
+ g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Hover (No Click)"));
}
break;
}