[Scummvm-cvs-logs] SF.net SVN: scummvm:[50324] scummvm/trunk

jvprat at users.sourceforge.net jvprat at users.sourceforge.net
Sat Jun 26 17:48:04 CEST 2010


Revision: 50324
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50324&view=rev
Author:   jvprat
Date:     2010-06-26 15:48:03 +0000 (Sat, 26 Jun 2010)

Log Message:
-----------
GUI: Add and improve some messages to translate

Modified Paths:
--------------
    scummvm/trunk/backends/midi/windows.cpp
    scummvm/trunk/backends/platform/sdl/graphics.cpp
    scummvm/trunk/backends/platform/wii/options.cpp
    scummvm/trunk/backends/platform/wince/wince-sdl.cpp
    scummvm/trunk/common/util.cpp
    scummvm/trunk/gui/about.cpp
    scummvm/trunk/gui/options.cpp
    scummvm/trunk/sound/fmopl.cpp
    scummvm/trunk/sound/null.cpp
    scummvm/trunk/sound/softsynth/pcspk.cpp

Modified: scummvm/trunk/backends/midi/windows.cpp
===================================================================
--- scummvm/trunk/backends/midi/windows.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/backends/midi/windows.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -31,6 +31,7 @@
 #include "sound/musicplugin.h"
 #include "sound/mpu401.h"
 #include "common/config-manager.h"
+#include "common/translation.h"
 
 #include <mmsystem.h>
 
@@ -152,7 +153,7 @@
 class WindowsMusicPlugin : public MusicPluginObject {
 public:
 	const char *getName() const {
-		return "Windows MIDI";
+		return _s("Windows MIDI");
 	}
 
 	const char *getId() const {

Modified: scummvm/trunk/backends/platform/sdl/graphics.cpp
===================================================================
--- scummvm/trunk/backends/platform/sdl/graphics.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/backends/platform/sdl/graphics.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -25,6 +25,7 @@
 
 #include "backends/platform/sdl/sdl.h"
 #include "common/mutex.h"
+#include "common/translation.h"
 #include "common/util.h"
 #ifdef USE_RGB_COLOR
 #include "common/list.h"
@@ -36,7 +37,7 @@
 #include "graphics/surface.h"
 
 static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
-	{"1x", "Normal (no scaling)", GFX_NORMAL},
+	{"1x", _s("Normal (no scaling)"), GFX_NORMAL},
 #ifdef USE_SCALERS
 	{"2x", "2x", GFX_DOUBLESIZE},
 	{"3x", "3x", GFX_TRIPLESIZE},
@@ -1378,7 +1379,7 @@
 	int y1 = y;
 
 	// Don't change mouse position, when mouse is outside of our window (in case of windowed mode)
-	if (!(SDL_GetAppState( ) & SDL_APPMOUSEFOCUS))
+	if (!(SDL_GetAppState( ) & SDL_APPMOUSEFOCUS))
 		return;
 
 	if (_videoMode.aspectRatioCorrection && !_overlayVisible)

Modified: scummvm/trunk/backends/platform/wii/options.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/options.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/backends/platform/wii/options.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -44,7 +44,7 @@
 		_strUnderscanY = "wii_video_default_underscan_y";
 	}
 
-	new ButtonWidget(this, _w - 108 - 16, _h - 24 - 16, 108, 24, _("Ok"), 0, 'k');
+	new ButtonWidget(this, _w - 108 - 16, _h - 24 - 16, 108, 24, _("OK"), 0, 'k');
 	new ButtonWidget(this, _w - 216 - 32, _h - 24 - 16, 108, 24, _("Cancel"), 0, 'c');
 	_tab = new TabWidget(this, 0, 0, _w, _h - 54);
 

Modified: scummvm/trunk/backends/platform/wince/wince-sdl.cpp
===================================================================
--- scummvm/trunk/backends/platform/wince/wince-sdl.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/backends/platform/wince/wince-sdl.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -30,6 +30,7 @@
 #include "common/events.h"
 #include "common/util.h"
 #include "common/timer.h"
+#include "common/translation.h"
 
 #include "engines/engine.h"
 
@@ -107,14 +108,14 @@
 // Low end devices 240x320
 
 static const OSystem::GraphicsMode s_supportedGraphicsModesLow[] = {
-	{"1x", "Normal (no scaling)", GFX_NORMAL},
+	{"1x", _s("Normal (no scaling)"), GFX_NORMAL},
 	{0, 0, 0}
 };
 
 // High end device 480x640
 
 static const OSystem::GraphicsMode s_supportedGraphicsModesHigh[] = {
-	{"1x", "Normal (no scaling)", GFX_NORMAL},
+	{"1x", _s("Normal (no scaling)"), GFX_NORMAL},
 	{"2x", "2x", GFX_DOUBLESIZE},
 #ifndef _MSC_VER // EVC breaks template functions, and I'm tired of fixing them :)
 	{"2xsai", "2xSAI", GFX_2XSAI},

Modified: scummvm/trunk/common/util.cpp
===================================================================
--- scummvm/trunk/common/util.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/common/util.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -24,6 +24,7 @@
 
 #include "common/util.h"
 #include "common/system.h"
+#include "common/translation.h"
 #include "common/config-manager.h"
 
 namespace Common {
@@ -31,7 +32,7 @@
 //
 // Print hexdump of the data passed in
 //
-void hexdump(const byte * data, int len, int bytesPerLine, int startOffset) {
+void hexdump(const byte *data, int len, int bytesPerLine, int startOffset) {
 	assert(1 <= bytesPerLine && bytesPerLine <= 32);
 	int i;
 	byte c;
@@ -250,8 +251,8 @@
 
 
 const RenderModeDescription g_renderModes[] = {
-	{"hercGreen", "Hercules Green", kRenderHercG},
-	{"hercAmber", "Hercules Amber", kRenderHercA},
+	{"hercGreen", _s("Hercules Green"), kRenderHercG},
+	{"hercAmber", _s("Hercules Amber"), kRenderHercA},
 	{"cga", "CGA", kRenderCGA},
 	{"ega", "EGA", kRenderEGA},
 	{"amiga", "Amiga", kRenderAmiga},

Modified: scummvm/trunk/gui/about.cpp
===================================================================
--- scummvm/trunk/gui/about.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/gui/about.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -93,22 +93,25 @@
 	version += gScummVMVersion;
 	_lines.push_back(version);
 
-	Common::String date(_s("C2""(built on "));
-	date += gScummVMBuildDate;
-	date += ')';
-	_lines.push_back(date);
+	Common::String date = Common::String::printf(_("(built on %s)"), gScummVMBuildDate);
+	_lines.push_back("C2" + date);
 
 	for (i = 0; i < ARRAYSIZE(copyright_text); i++)
 		addLine(copyright_text[i]);
 
-	addLine(_s("C1""Features compiled in:"));
-	Common::String features("C0");
-	features += gScummVMFeatures;
+	Common::String features("C1");
+	features += _("Features compiled in:");
 	addLine(features.c_str());
+	Common::String featureList("C0");
+	featureList += gScummVMFeatures;
+	addLine(featureList.c_str());
 
 	_lines.push_back("");
 
-	addLine(_s("C1""Available engines:"));
+	Common::String engines("C1");
+	engines += _("Available engines:");
+	addLine(engines.c_str());
+
 	const EnginePlugin::List &plugins = EngineMan.getPlugins();
 	EnginePlugin::List::const_iterator iter = plugins.begin();
 	for (; iter != plugins.end(); ++iter) {

Modified: scummvm/trunk/gui/options.cpp
===================================================================
--- scummvm/trunk/gui/options.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/gui/options.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -653,7 +653,7 @@
 
 	_mt32DevicePopUpDesc = new StaticTextWidget(boss, prefix + "auPrefMt32PopupDesc", _("MT32 Device:"), _("Specifies default sound device for Roland MT-32/LAPC1/CM32l/CM64 output"));
 	_mt32DevicePopUp = new PopUpWidget(boss, prefix + "auPrefMt32Popup");
-	_gmDevicePopUpDesc = new StaticTextWidget(boss, prefix + "auPrefGmPopupDesc", _("GM Device:"), _("Specifies default sound device for General Midi output"));
+	_gmDevicePopUpDesc = new StaticTextWidget(boss, prefix + "auPrefGmPopupDesc", _("GM Device:"), _("Specifies default sound device for General MIDI output"));
 	_gmDevicePopUp = new PopUpWidget(boss, prefix + "auPrefGmPopup");
 
 	// Populate it

Modified: scummvm/trunk/sound/fmopl.cpp
===================================================================
--- scummvm/trunk/sound/fmopl.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/sound/fmopl.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -47,9 +47,9 @@
 
 const Config::EmulatorDescription Config::_drivers[] = {
 	{ "auto", "<default>", kAuto, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },
-	{ "mame", "MAME OPL emulator", kMame, kFlagOpl2 },
+	{ "mame", _s("MAME OPL emulator"), kMame, kFlagOpl2 },
 #ifndef DISABLE_DOSBOX_OPL
-	{ "db", "DOSBox OPL emulator", kDOSBox, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },
+	{ "db", _s("DOSBox OPL emulator"), kDOSBox, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },
 #endif
 	{ 0, 0, 0, 0 }
 };

Modified: scummvm/trunk/sound/null.cpp
===================================================================
--- scummvm/trunk/sound/null.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/sound/null.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -32,7 +32,7 @@
 
 MusicDevices NullMusicPlugin::getDevices() const {
 	MusicDevices devices;
-	devices.push_back(MusicDevice(this, _s(""), MT_NULL));
+	devices.push_back(MusicDevice(this, "", MT_NULL));
 	return devices;
 }
 
@@ -50,7 +50,7 @@
 
 MusicDevices AutoMusicPlugin::getDevices() const {
 	MusicDevices devices;
-	devices.push_back(MusicDevice(this, _s(""), MT_AUTO));
+	devices.push_back(MusicDevice(this, "", MT_AUTO));
 	return devices;
 }
 

Modified: scummvm/trunk/sound/softsynth/pcspk.cpp
===================================================================
--- scummvm/trunk/sound/softsynth/pcspk.cpp	2010-06-26 15:25:47 UTC (rev 50323)
+++ scummvm/trunk/sound/softsynth/pcspk.cpp	2010-06-26 15:48:03 UTC (rev 50324)
@@ -151,7 +151,7 @@
 
 MusicDevices PCSpeakerMusicPlugin::getDevices() const {
 	MusicDevices devices;
-	devices.push_back(MusicDevice(this, _s(""), MT_PCSPK));
+	devices.push_back(MusicDevice(this, "", MT_PCSPK));
 	return devices;
 }
 
@@ -170,7 +170,7 @@
 
 MusicDevices PCjrMusicPlugin::getDevices() const {
 	MusicDevices devices;
-	devices.push_back(MusicDevice(this, _s(""), MT_PCJR));
+	devices.push_back(MusicDevice(this, "", MT_PCJR));
 	return devices;
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list