[Scummvm-cvs-logs] SF.net SVN: scummvm: [32911] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jul 5 09:47:27 CEST 2008


Revision: 32911
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32911&view=rev
Author:   lordhoto
Date:     2008-07-05 00:47:27 -0700 (Sat, 05 Jul 2008)

Log Message:
-----------
Added spanish menu strings for spanish fan translation of Kyrandia 3.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra_mr.cpp
    scummvm/trunk/engines/kyra/kyra_mr.h
    scummvm/trunk/engines/kyra/staticres.cpp

Modified: scummvm/trunk/engines/kyra/kyra_mr.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra_mr.cpp	2008-07-05 04:28:17 UTC (rev 32910)
+++ scummvm/trunk/engines/kyra/kyra_mr.cpp	2008-07-05 07:47:27 UTC (rev 32911)
@@ -343,6 +343,11 @@
 		0x80, 0xFF
 	};
 
+	if (_flags.lang == Common::ES_ESP) {
+		for (int i = 0; i < 4; ++i)
+			data.strings[i] = _mainMenuSpanishFan[i];
+	}
+
 	MainMenu::Animation anim;
 	anim.anim = _menuAnim;
 	anim.startFrame = 29;

Modified: scummvm/trunk/engines/kyra/kyra_mr.h
===================================================================
--- scummvm/trunk/engines/kyra/kyra_mr.h	2008-07-05 04:28:17 UTC (rev 32910)
+++ scummvm/trunk/engines/kyra/kyra_mr.h	2008-07-05 07:47:27 UTC (rev 32911)
@@ -184,9 +184,11 @@
 
 private:
 	// main menu
-	const char *const *_mainMenuStrings;
+	const char * const *_mainMenuStrings;
 	int _mainMenuStringsSize;
 
+	static const char * const _mainMenuSpanishFan[];
+
 	// animator
 	uint8 *_gamePlayBuffer;
 	void restorePage3();

Modified: scummvm/trunk/engines/kyra/staticres.cpp
===================================================================
--- scummvm/trunk/engines/kyra/staticres.cpp	2008-07-05 04:28:17 UTC (rev 32910)
+++ scummvm/trunk/engines/kyra/staticres.cpp	2008-07-05 07:47:27 UTC (rev 32911)
@@ -1980,6 +1980,13 @@
 	"TRS"*/
 };
 
+const char * const KyraEngine_MR::_mainMenuSpanishFan[] = {
+	"Nouvelle Partie",
+	"Ver Intro",
+	"Restaurar",
+	"Finalizar"
+};
+
 const int KyraEngine_MR::_languageExtensionSize = ARRAYSIZE(KyraEngine_MR::_languageExtension);
 
 const KyraEngine_MR::ShapeDesc KyraEngine_MR::_shapeDescs[] = {


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