diff options
Diffstat (limited to 'engines/tony')
-rw-r--r-- | engines/tony/POTFILES | 1 | ||||
-rw-r--r-- | engines/tony/tony.cpp | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/tony/POTFILES b/engines/tony/POTFILES new file mode 100644 index 0000000000..a2e3c09eab --- /dev/null +++ b/engines/tony/POTFILES @@ -0,0 +1 @@ +engines/tony/tony.cpp diff --git a/engines/tony/tony.cpp b/engines/tony/tony.cpp index c51f449aa1..a3ba9c0f0c 100644 --- a/engines/tony/tony.cpp +++ b/engines/tony/tony.cpp @@ -27,6 +27,7 @@ #include "common/events.h" #include "common/file.h" #include "common/installshield_cab.h" +#include "common/translation.h" #include "tony/tony.h" #include "tony/custom.h" #include "tony/debugger.h" @@ -189,11 +190,12 @@ Common::ErrorCode TonyEngine::init() { bool TonyEngine::loadTonyDat() { Common::String msg; Common::File in; + Common::String filename = "tony.dat"; - in.open("tony.dat"); + in.open(filename.c_str()); if (!in.isOpen()) { - msg = "You're missing the 'tony.dat' file. Get it from the ScummVM website"; + msg = Common::String::format(_("You're missing the '%s' file. Get it from the ScummVM website"), filename.c_str()); GUIErrorMessage(msg); warning("%s", msg.c_str()); return false; |