aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
authorColin Snover2017-05-07 14:29:35 -0500
committerColin Snover2017-05-08 11:26:46 -0500
commitc9cbb8e31cba794259905a1c2263d8a3d6d63b9b (patch)
tree42202b5fec83d2059ce0160d8c4ef3e4f2bdc7c2 /engines/sci/engine/savegame.cpp
parent554a73e01209643161f8adecba825a5bc39f87f8 (diff)
downloadscummvm-rg350-c9cbb8e31cba794259905a1c2263d8a3d6d63b9b.tar.gz
scummvm-rg350-c9cbb8e31cba794259905a1c2263d8a3d6d63b9b.tar.bz2
scummvm-rg350-c9cbb8e31cba794259905a1c2263d8a3d6d63b9b.zip
SCI: Translate messages passed to dialogues
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp7
1 files changed, 4 insertions, 3 deletions
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;