aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/resources.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2012-07-15 03:07:01 +0300
committerFilippos Karapetis2012-07-15 03:07:01 +0300
commita97f4466fdf7320cf184d0d4974670b4b4e4bee4 (patch)
tree92018c474b0d94ead1f081beb564a7be05c0546f /engines/teenagent/resources.cpp
parentf4e395b4a185ac4aabd4e0a19c7e00682365d893 (diff)
downloadscummvm-rg350-a97f4466fdf7320cf184d0d4974670b4b4e4bee4.tar.gz
scummvm-rg350-a97f4466fdf7320cf184d0d4974670b4b4e4bee4.tar.bz2
scummvm-rg350-a97f4466fdf7320cf184d0d4974670b4b4e4bee4.zip
TEENAGENT: Add translatable strings in resources.cpp
Diffstat (limited to 'engines/teenagent/resources.cpp')
-rw-r--r--engines/teenagent/resources.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/teenagent/resources.cpp b/engines/teenagent/resources.cpp
index 0dc6ea2f3c..dff58f98e2 100644
--- a/engines/teenagent/resources.cpp
+++ b/engines/teenagent/resources.cpp
@@ -22,6 +22,7 @@
#include "teenagent/resources.h"
#include "teenagent/teenagent.h"
#include "common/textconsole.h"
+#include "common/translation.h"
#include "common/zlib.h"
namespace TeenAgent {
@@ -64,9 +65,9 @@ bool Resources::loadArchives(const ADGameDescription *gd) {
Common::File *dat_file = new Common::File();
if (!dat_file->open("teenagent.dat")) {
delete dat_file;
- Common::String errorMessage = "You're missing the 'teenagent.dat' file. Get it from the ScummVM website";
- GUIErrorMessage(errorMessage);
+ Common::String errorMessage = _("You're missing the 'teenagent.dat' file. Get it from the ScummVM website");
warning("%s", errorMessage.c_str());
+ GUIErrorMessage(errorMessage);
return false;
}
@@ -85,9 +86,9 @@ bool Resources::loadArchives(const ADGameDescription *gd) {
if (isCompressed) {
// teenagent.dat is compressed, but zlib hasn't been compiled in
delete dat;
- Common::String errorMessage = "The teenagent.dat file is compressed and zlib hasn't been included in this executable. Please decompress it";
- GUIErrorMessage(errorMessage);
+ Common::String errorMessage = _("The teenagent.dat file is compressed and zlib hasn't been included in this executable. Please decompress it");
warning("%s", errorMessage.c_str());
+ GUIErrorMessage(errorMessage);
return false;
}
#endif