[Scummvm-cvs-logs] scummvm master -> a97f4466fdf7320cf184d0d4974670b4b4e4bee4

bluegr md5 at scummvm.org
Sun Jul 15 02:08:23 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a97f4466fd TEENAGENT: Add translatable strings in resources.cpp


Commit: a97f4466fdf7320cf184d0d4974670b4b4e4bee4
    https://github.com/scummvm/scummvm/commit/a97f4466fdf7320cf184d0d4974670b4b4e4bee4
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2012-07-14T17:07:01-07:00

Commit Message:
TEENAGENT: Add translatable strings in resources.cpp

Changed paths:
    engines/teenagent/resources.cpp
    po/POTFILES



diff --git a/engines/teenagent/resources.cpp b/engines/teenagent/resources.cpp
index 0dc6ea2..dff58f9 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
diff --git a/po/POTFILES b/po/POTFILES
index 8b74115..36bd2ff 100644
--- a/po/POTFILES
+++ b/po/POTFILES
@@ -53,6 +53,7 @@ engines/sword1/logic.cpp
 engines/sword1/sword1.cpp
 engines/sword2/animation.cpp
 engines/sword2/sword2.cpp
+engines/teenagent/resources.cpp
 engines/tinsel/saveload.cpp
 engines/parallaction/saveload.cpp
 






More information about the Scummvm-git-logs mailing list