[Scummvm-git-logs] scummvm master -> e4d1871a6e79d513bf831105ab160bb3581d25cf

criezy criezy at scummvm.org
Tue Aug 24 20:49:06 UTC 2021


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:
e4d1871a6e AGS: Translate error dialog messages


Commit: e4d1871a6e79d513bf831105ab160bb3581d25cf
    https://github.com/scummvm/scummvm/commit/e4d1871a6e79d513bf831105ab160bb3581d25cf
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2021-08-24T21:48:13+01:00

Commit Message:
AGS: Translate error dialog messages

Changed paths:
    engines/ags/POTFILES
    engines/ags/ags.cpp


diff --git a/engines/ags/POTFILES b/engines/ags/POTFILES
index be8d542e58..50ae065ea0 100644
--- a/engines/ags/POTFILES
+++ b/engines/ags/POTFILES
@@ -1 +1,2 @@
 engines/ags/detection.cpp
+engines/ags/ags.cpp
diff --git a/engines/ags/ags.cpp b/engines/ags/ags.cpp
index 8288b039db..f8feb817fc 100644
--- a/engines/ags/ags.cpp
+++ b/engines/ags/ags.cpp
@@ -64,6 +64,10 @@
 #include "ags/tests/test_all.h"
 #endif
 
+// Include translation.h last as some AGS classes have member such as _sc, which clash with
+// macro defined in translation.h.
+#include "common/translation.h"
+
 namespace AGS {
 
 AGSEngine *g_vm;
@@ -121,7 +125,7 @@ Common::Error AGSEngine::run() {
 	}
 
 	if (isUnsupportedPre25()) {
-		GUIError("The selected game uses a pre-2.5 version of the AGS engine, which is not supported.");
+		GUIErrorMessage(_("The selected game uses a pre-2.5 version of the AGS engine, which is not supported."));
 		return Common::kNoError;
 	}
 
@@ -129,8 +133,8 @@ Common::Error AGSEngine::run() {
 		// If the game file was opened and the engine started, but the
 		// size is -1, then it must be a game like Strangeland where
 		// the data file is > 2Gb
-		GUIError("The selected game has a data file greater than 2Gb, " \
-			"which isn't supported by your version of ScummVM yet");
+		GUIErrorMessage(_("The selected game has a data file greater than 2Gb, "
+			"which isn't supported by your version of ScummVM yet."));
 		return Common::kNoError;
 	}
 




More information about the Scummvm-git-logs mailing list