From c9cbb8e31cba794259905a1c2263d8a3d6d63b9b Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 7 May 2017 14:29:35 -0500 Subject: SCI: Translate messages passed to dialogues --- engines/sci/engine/savegame.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine/savegame.cpp') diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index e2099a4865..5172de3f43 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -25,6 +25,7 @@ #include "common/system.h" #include "common/func.h" #include "common/serializer.h" +#include "common/translation.h" #include "graphics/thumbnail.h" #include "sci/sci.h" @@ -1258,9 +1259,9 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { if ((meta.version < MINIMUM_SAVEGAME_VERSION) || (meta.version > CURRENT_SAVEGAME_VERSION)) { if (meta.version < MINIMUM_SAVEGAME_VERSION) { - showScummVMDialog("The format of this saved game is obsolete, unable to load it"); + showScummVMDialog(_("The format of this saved game is obsolete, unable to load it")); } else { - Common::String msg = Common::String::format("Savegame version is %d, maximum supported is %0d", meta.version, CURRENT_SAVEGAME_VERSION); + Common::String msg = Common::String::format(_("Savegame version is %d, maximum supported is %0d"), meta.version, CURRENT_SAVEGAME_VERSION); showScummVMDialog(msg); } @@ -1271,7 +1272,7 @@ void gamestate_restore(EngineState *s, Common::SeekableReadStream *fh) { if (meta.gameObjectOffset > 0 && meta.script0Size > 0) { Resource *script0 = g_sci->getResMan()->findResource(ResourceId(kResourceTypeScript, 0), false); if (script0->size() != meta.script0Size || g_sci->getGameObject().getOffset() != meta.gameObjectOffset) { - showScummVMDialog("This saved game was created with a different version of the game, unable to load it"); + showScummVMDialog(_("This saved game was created with a different version of the game, unable to load it")); s->r_acc = TRUE_REG; // signal failure return; -- cgit v1.2.3