aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo
diff options
context:
space:
mode:
authorBen Castricum2016-12-05 15:29:23 +0100
committerBen Castricum2016-12-05 21:04:50 +0100
commite1ec91b69abe730f297dfe1fe1740f4b2a13d8da (patch)
tree33f63eaf0664eb23398def1abda5fe58ae4aa7ef /engines/hugo
parent5c60a75f94f2a267b1ec02728a1f6ad0aa7da9c9 (diff)
downloadscummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.tar.gz
scummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.tar.bz2
scummvm-rg350-e1ec91b69abe730f297dfe1fe1740f4b2a13d8da.zip
ALL: Unify 'missing engine data' message
Diffstat (limited to 'engines/hugo')
-rw-r--r--engines/hugo/POTFILES1
-rw-r--r--engines/hugo/hugo.cpp6
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/hugo/POTFILES b/engines/hugo/POTFILES
index ff61e12ca5..b7b99ca095 100644
--- a/engines/hugo/POTFILES
+++ b/engines/hugo/POTFILES
@@ -1 +1,2 @@
+engines/hugo/hugo.cpp
engines/hugo/file.cpp
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp
index 267eb08436..e129727e84 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(_("You're missing the '%s' file. Get it from the ScummVM website"), filename.c_str());
GUIErrorMessage(errorMessage);
warning("%s", errorMessage.c_str());
return false;