diff options
Diffstat (limited to 'engines/hugo/hugo.cpp')
-rw-r--r-- | engines/hugo/hugo.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 267eb08436..6881278cee 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -27,6 +27,7 @@ #include "common/debug-channels.h" #include "common/config-manager.h" #include "common/textconsole.h" +#include "common/translation.h" #include "hugo/hugo.h" #include "hugo/console.h" @@ -429,10 +430,11 @@ void HugoEngine::runMachine() { */ bool HugoEngine::loadHugoDat() { Common::File in; - in.open("hugo.dat"); + Common::String filename = "hugo.dat"; + in.open(filename.c_str()); if (!in.isOpen()) { - Common::String errorMessage = "You're missing the 'hugo.dat' file. Get it from the ScummVM website"; + Common::String errorMessage = Common::String::format(_("Unable to locate the '%s' engine data file."), filename.c_str()); GUIErrorMessage(errorMessage); warning("%s", errorMessage.c_str()); return false; @@ -443,7 +445,7 @@ bool HugoEngine::loadHugoDat() { in.read(buf, 4); if (memcmp(buf, "HUGO", 4)) { - Common::String errorMessage = "File 'hugo.dat' is corrupt. Get it from the ScummVM website"; + Common::String errorMessage = Common::String::format(_("The '%s' engine data file is corrupt."), filename.c_str()); GUIErrorMessage(errorMessage); return false; } @@ -452,7 +454,9 @@ bool HugoEngine::loadHugoDat() { int minVer = in.readByte(); if ((majVer != HUGO_DAT_VER_MAJ) || (minVer != HUGO_DAT_VER_MIN)) { - Common::String errorMessage = Common::String::format("File 'hugo.dat' is wrong version. Expected %d.%d but got %d.%d. Get it from the ScummVM website", HUGO_DAT_VER_MAJ, HUGO_DAT_VER_MIN, majVer, minVer); + Common::String errorMessage = Common::String::format( + _("Incorrect version of the '%s' engine data file found. Expected %d.%d but got %d.%d."), + filename.c_str(),HUGO_DAT_VER_MAJ, HUGO_DAT_VER_MIN, majVer, minVer); GUIErrorMessage(errorMessage); return false; } |