diff options
author | Eugene Sandulenko | 2016-12-17 12:45:38 +0100 |
---|---|---|
committer | GitHub | 2016-12-17 12:45:38 +0100 |
commit | 0e5788f4e3b4060c4a78527815ddbdc63c9f4d67 (patch) | |
tree | 9ef55ddefaa81c25fdd4e2c52873c369652360ef /engines/drascula | |
parent | 34b2d3f97541673d2909d33ac525b730a7552ad6 (diff) | |
parent | ebaab44cd16ae784cebb66b7cf220842808a8bde (diff) | |
download | scummvm-rg350-0e5788f4e3b4060c4a78527815ddbdc63c9f4d67.tar.gz scummvm-rg350-0e5788f4e3b4060c4a78527815ddbdc63c9f4d67.tar.bz2 scummvm-rg350-0e5788f4e3b4060c4a78527815ddbdc63c9f4d67.zip |
Merge pull request #866 from BenCastricum/editing
ALL: Unify messages concerning engine data files
Diffstat (limited to 'engines/drascula')
-rw-r--r-- | engines/drascula/POTFILES | 1 | ||||
-rw-r--r-- | engines/drascula/drascula.cpp | 12 |
2 files changed, 9 insertions, 4 deletions
diff --git a/engines/drascula/POTFILES b/engines/drascula/POTFILES index ea79f9e066..925b309996 100644 --- a/engines/drascula/POTFILES +++ b/engines/drascula/POTFILES @@ -1,2 +1,3 @@ +engines/drascula/drascula.cpp engines/drascula/detection.cpp engines/drascula/saveload.cpp diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp index ab91056480..655af480f2 100644 --- a/engines/drascula/drascula.cpp +++ b/engines/drascula/drascula.cpp @@ -25,6 +25,7 @@ #include "common/file.h" #include "common/config-manager.h" #include "common/textconsole.h" +#include "common/translation.h" #include "backends/audiocd/audiocd.h" @@ -955,12 +956,13 @@ void DrasculaEngine::hipo_sin_nadie(int counter){ bool DrasculaEngine::loadDrasculaDat() { Common::File in; + Common::String filename = "drascula.dat"; int i; - in.open("drascula.dat"); + in.open(filename.c_str()); if (!in.isOpen()) { - Common::String errorMessage = "You're missing the 'drascula.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()); @@ -974,7 +976,7 @@ bool DrasculaEngine::loadDrasculaDat() { buf[8] = '\0'; if (strcmp(buf, "DRASCULA") != 0) { - Common::String errorMessage = "File 'drascula.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); warning("%s", errorMessage.c_str()); @@ -984,7 +986,9 @@ bool DrasculaEngine::loadDrasculaDat() { ver = in.readByte(); if (ver != DRASCULA_DAT_VER) { - Common::String errorMessage = Common::String::format("File 'drascula.dat' is wrong version. Expected %d but got %d. Get it from the ScummVM website", DRASCULA_DAT_VER, ver); + 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(), DRASCULA_DAT_VER, 0, ver, 0); GUIErrorMessage(errorMessage); warning("%s", errorMessage.c_str()); |