[Scummvm-git-logs] scummvm master -> 4bb8d15f81f5047a5f46ed9cfb08bdfa4676a9b0

yuv422 noreply at scummvm.org
Sun Dec 22 00:20:59 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4bb8d15f81 DARKSEED: Added usecode localised in-game text for ES, FR & DE versions.


Commit: 4bb8d15f81f5047a5f46ed9cfb08bdfa4676a9b0
    https://github.com/scummvm/scummvm/commit/4bb8d15f81f5047a5f46ed9cfb08bdfa4676a9b0
Author: Eric Fry (yuv422 at reversedgames.com)
Date: 2024-12-22T11:19:25+11:00

Commit Message:
DARKSEED: Added usecode localised in-game text for ES, FR & DE versions.

Changed paths:
    engines/darkseed/langtext.h
    engines/darkseed/usecode.cpp


diff --git a/engines/darkseed/langtext.h b/engines/darkseed/langtext.h
index 71e04cc7beb..f1e60fa21ff 100644
--- a/engines/darkseed/langtext.h
+++ b/engines/darkseed/langtext.h
@@ -33,13 +33,6 @@ struct I18nText {
 
 const char *getI18NText(const I18nText &text);
 
-constexpr I18nText kI18N_blankText = {
-	"",
-	"",
-	"",
-	""
-};
-
 constexpr I18nText kI18N_CarKeysIgnitionText = {
 	"You see the car keys in the ignition.",
 	"VES LAS LLAVES DEL COCHE EN EL CONTACTO.",
@@ -152,6 +145,61 @@ constexpr I18nText kI18N_YouTouchTheOrnateSignalText = {
   "GREIFE DIE VERZAUBERTEN STEINE AN."
 };
 
+constexpr I18nText kI18N_ThisSentryCannotBeStoppedWithText = {
+	"This sentry cannot be stopped with a",
+	"NO PUEDES PARAR A ESTE CENTINELA CON",
+	"VOUS N'ARRETEREZ PAS LA SENTINELLE AVEC",
+	"DIESE WACHE KANN NICHT AUFGEHALTEN WERDEN MIT"
+};
+
+constexpr I18nText kI18N_HasNoEffectOnTheAlienTubesText = {
+	"The %s has no effect on the alien tubes.",
+	"%s NO TIENE EFECTO SOBRE LOS TUBOS ALIENIGENAS.",
+	"%s RESTE SANS EFFET SUR LES TUBES EXTRA-TERRESTRES.",
+	"%s BEWIRKT NICHTS AN AUSSERIRDISCHEN TUNNELS."
+};
+
+constexpr I18nText kI18N_YouIncinerateTheText = {
+	"You incinerate the %s inside the power nexus!.",
+	"INCINERAS %s DENTRO DE LA FUENTA DE ENERGIA.",
+	"VOUS INCINEREZ %s A L'INTERIEUR DU LIEN DE PUISSANCE.",
+	"DU VERNICHTEST %s MIT DER STROMVERSORGUNG!"
+};
+
+constexpr I18nText kI18N_HasNoEffectOnTheAlienMonstrosityText = {
+	"The %s has no effect on this alien monstrosity.",
+	"%s NO TIENE EFECTO SOBRE ESTA MONSTRUOSIDAD ALIENIGENA.",
+	"%s RESTE SANS EFFET SUR CETTE MONSTRUOSITE EXTRA-TERRESTRE.",
+	"%s BEWIRKT NICHTS AM AUSSERIRDISCHEN MONSTRUM."
+};
+
+constexpr I18nText kI18N_cutTheWiresText = {
+	"The %s is not strong enough to cut the cables.\nPerhaps if you had some wire cutters?",
+	"%s NO ES LO BASTANTE RESISTENTE COMO PARA CORTAR LOS CABLES.\nY SI TUVIERAS UN CORTACABLES?",
+	"%s NE POURRA PAS COUPER LES CABLES.\nET SI VOUS AVIEZ DES PINCES COUPANTES?",
+	"%s IST NICHT STARK GENUG, UM DIE KABEL ABZUSCHNEIDEN.\nHAST DU VIELLEICHT EINEN KABELSCHNEIDER?"
+};
+
+constexpr I18nText kI18N_NoEffectOnTheProtectedAncientText = {
+	"The %s has no effect on the protected ancient.",
+	"%s NO TIENE EFECTO SOBRE EL ANTEPASADO PROTEGIDO.",
+	"%s N'A AUCUN EFFET SUR L'ANCIEN PROTEGE.",
+	"%s BEWIRKT NICHTS BEI DEM GESCHUETZTEN ALTEN."
+};
+
+constexpr I18nText kI18N_YouHideTheObjectUnderThePillowText = {
+	"You hide the %s under the pillow.",
+	"OCULTAS %s BAJO LA ALMOHADA.",
+	"VOUS CACHEZ %s SOUS L'OREILLER.",
+	"DU VERSTECKST %s UNTER DEM KISSEN."
+};
+
+constexpr I18nText kI18N_blankText = {
+	"",
+	"",
+	"",
+	""
+};
 } // namespace Darkseed
 
 #endif //DARKSEED_LANGTEXT_H
diff --git a/engines/darkseed/usecode.cpp b/engines/darkseed/usecode.cpp
index 9fe6dca406f..caae25f2463 100644
--- a/engines/darkseed/usecode.cpp
+++ b/engines/darkseed/usecode.cpp
@@ -1551,43 +1551,44 @@ void UseCode::genericResponse(int16 useObjNum, int16 targetObjNum, int16 tosIdx)
 	case 979:
 		_console->addTextLine(
 			Common::String::format(
-				"This sentry cannot be stopped with a %s.",
+				"%s %s.",
+				getI18NText(kI18N_ThisSentryCannotBeStoppedWithText),
 				_objectVar.getObjectName(useObjNum)));
 		break;
 	case 980:
 		_console->addTextLine(
 			Common::String::format(
-				"The %s has no effect on the alien tubes.",
+				getI18NText(kI18N_HasNoEffectOnTheAlienTubesText),
 				_objectVar.getObjectName(useObjNum)));
 		break;
 	case 981:
 		_console->addTextLine(
 			Common::String::format(
-				"You incinerate the %s inside the power nexus!.",
+				getI18NText(kI18N_YouIncinerateTheText),
 				_objectVar.getObjectName(useObjNum)));
 		break;
 	case 982:
 		_console->addTextLine(
 			Common::String::format(
-				"The %s has no effect on this alien monstrosity.",
+				getI18NText(kI18N_HasNoEffectOnTheAlienMonstrosityText),
 				_objectVar.getObjectName(useObjNum)));
 		break;
 	case 983:
 		_console->addTextLine(
 			Common::String::format(
-				"The %s is not strong enough to cut the cables.\nPerhaps if you had some wire cutters?",
+				getI18NText(kI18N_cutTheWiresText),
 				_objectVar.getObjectName(useObjNum)));
 		break;
 	case 984:
 		_console->addTextLine(
 			Common::String::format(
-				"The %s has no effect on the protected ancient.",
+				getI18NText(kI18N_NoEffectOnTheProtectedAncientText),
 				_objectVar.getObjectName(useObjNum)));
 		break;
 	case 985:
 		_console->addTextLine(
 			Common::String::format(
-				"You hide the %s under the pillow.",
+				getI18NText(kI18N_YouHideTheObjectUnderThePillowText),
 				_objectVar.getObjectName(useObjNum)));
 		break;
 	case 986:




More information about the Scummvm-git-logs mailing list