aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
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/graphics
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/graphics')
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp23
-rw-r--r--backends/graphics/sdl/sdl-graphics.cpp13
2 files changed, 23 insertions, 13 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp
index 3f9ffc9f3e..87457c3c08 100644
--- a/backends/graphics/openglsdl/openglsdl-graphics.cpp
+++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp
@@ -28,6 +28,7 @@
#include "backends/platform/sdl/sdl.h"
#include "common/config-manager.h"
#include "common/textconsole.h"
+#include "common/translation.h"
OpenGLSdlGraphicsManager::OpenGLSdlGraphicsManager()
:
@@ -394,7 +395,8 @@ void OpenGLSdlGraphicsManager::displayModeChangedMsg() {
const int scaleFactor = getScale();
char buffer[128];
- sprintf(buffer, "Current display mode: %s\n%d x %d -> %d x %d",
+ sprintf(buffer, "%s: %s\n%d x %d -> %d x %d",
+ _("Current display mode"),
newModeName,
_videoMode.screenWidth * scaleFactor,
_videoMode.screenHeight * scaleFactor,
@@ -406,7 +408,8 @@ void OpenGLSdlGraphicsManager::displayModeChangedMsg() {
void OpenGLSdlGraphicsManager::displayScaleChangedMsg() {
char buffer[128];
const int scaleFactor = getScale();
- sprintf(buffer, "Current scale: x%d\n%d x %d -> %d x %d",
+ sprintf(buffer, "%s: x%d\n%d x %d -> %d x %d",
+ _("Current scale"),
scaleFactor,
_videoMode.screenWidth, _videoMode.screenHeight,
_videoMode.overlayWidth, _videoMode.overlayHeight
@@ -449,11 +452,13 @@ void OpenGLSdlGraphicsManager::toggleFullScreen(int loop) {
#ifdef USE_OSD
char buffer[128];
if (getFullscreenMode())
- sprintf(buffer, "Fullscreen mode\n%d x %d",
+ sprintf(buffer, "%s\n%d x %d",
+ _("Fullscreen mode"),
_hwscreen->w, _hwscreen->h
);
else
- sprintf(buffer, "Windowed mode\n%d x %d",
+ sprintf(buffer, "%s\n%d x %d",
+ _("Windowed mode"),
_hwscreen->w, _hwscreen->h
);
displayMessageOnOSD(buffer);
@@ -508,11 +513,13 @@ bool OpenGLSdlGraphicsManager::notifyEvent(const Common::Event &event) {
#ifdef USE_OSD
char buffer[128];
if (getFeatureState(OSystem::kFeatureAspectRatioCorrection))
- sprintf(buffer, "Enabled aspect ratio correction\n%d x %d -> %d x %d",
+ sprintf(buffer, "%s\n%d x %d -> %d x %d",
+ _("Enabled aspect ratio correction"),
_videoMode.screenWidth, _videoMode.screenHeight,
_hwscreen->w, _hwscreen->h);
else
- sprintf(buffer, "Disabled aspect ratio correction\n%d x %d -> %d x %d",
+ sprintf(buffer, "%s\n%d x %d -> %d x %d",
+ _("Disabled aspect ratio correction"),
_videoMode.screenWidth, _videoMode.screenHeight,
_hwscreen->w, _hwscreen->h);
displayMessageOnOSD(buffer);
@@ -532,9 +539,9 @@ bool OpenGLSdlGraphicsManager::notifyEvent(const Common::Event &event) {
// modes we use, we might want to consider a better way of
// displaying information to the user.
if (getAntialiasingState())
- displayMessageOnOSD("Active filter mode: Linear");
+ displayMessageOnOSD(_("Active filter mode: Linear"));
else
- displayMessageOnOSD("Active filter mode: Nearest");
+ displayMessageOnOSD(_("Active filter mode: Nearest"));
#endif
return true;
}
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp
index 5c166bd8b1..9063f55744 100644
--- a/backends/graphics/sdl/sdl-graphics.cpp
+++ b/backends/graphics/sdl/sdl-graphics.cpp
@@ -2133,12 +2133,14 @@ bool SdlGraphicsManager::handleScalerHotkeys(Common::KeyCode key) {
#ifdef USE_OSD
char buffer[128];
if (_videoMode.aspectRatioCorrection)
- sprintf(buffer, "Enabled aspect ratio correction\n%d x %d -> %d x %d",
+ sprintf(buffer, "%s\n%d x %d -> %d x %d",
+ _("Enabled aspect ratio correction"),
_videoMode.screenWidth, _videoMode.screenHeight,
_hwscreen->w, _hwscreen->h
);
else
- sprintf(buffer, "Disabled aspect ratio correction\n%d x %d -> %d x %d",
+ sprintf(buffer, "%s\n%d x %d -> %d x %d",
+ _("Disabled aspect ratio correction"),
_videoMode.screenWidth, _videoMode.screenHeight,
_hwscreen->w, _hwscreen->h
);
@@ -2192,7 +2194,8 @@ bool SdlGraphicsManager::handleScalerHotkeys(Common::KeyCode key) {
}
if (newScalerName) {
char buffer[128];
- sprintf(buffer, "Active graphics filter: %s\n%d x %d -> %d x %d",
+ sprintf(buffer, "%s %s\n%d x %d -> %d x %d",
+ _("Active graphics filter:"),
newScalerName,
_videoMode.screenWidth, _videoMode.screenHeight,
_hwscreen->w, _hwscreen->h
@@ -2246,9 +2249,9 @@ void SdlGraphicsManager::toggleFullScreen() {
endGFXTransaction();
#ifdef USE_OSD
if (_videoMode.fullscreen)
- displayMessageOnOSD("Fullscreen mode");
+ displayMessageOnOSD(_("Fullscreen mode"));
else
- displayMessageOnOSD("Windowed mode");
+ displayMessageOnOSD(_("Windowed mode"));
#endif
}