aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/bladerunner.cpp
diff options
context:
space:
mode:
authorThanasis Antoniou2019-05-16 16:29:20 +0300
committerThanasis Antoniou2019-05-16 16:30:27 +0300
commitdb352ff2bb5ffbe505db28703f0e1bdd2d124095 (patch)
tree47a5a87b54aaafe63f25a728b7a397a7b1e79f44 /engines/bladerunner/bladerunner.cpp
parent0325c9315cdeb30d2124fbb9dcc3c36687d34da8 (diff)
downloadscummvm-rg350-db352ff2bb5ffbe505db28703f0e1bdd2d124095.tar.gz
scummvm-rg350-db352ff2bb5ffbe505db28703f0e1bdd2d124095.tar.bz2
scummvm-rg350-db352ff2bb5ffbe505db28703f0e1bdd2d124095.zip
BLADERUNNER: Add POTFILES and encapsulate message strings
Diffstat (limited to 'engines/bladerunner/bladerunner.cpp')
-rw-r--r--engines/bladerunner/bladerunner.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index 8cd9df7186..c1d1a27b35 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -83,6 +83,7 @@
#include "common/savefile.h"
#include "common/system.h"
#include "common/debug-channels.h"
+#include "common/translation.h"
#include "gui/message.h"
#include "engines/util.h"
@@ -312,7 +313,7 @@ Common::Error BladeRunnerEngine::run() {
if (!startup(hasSavegames)) {
shutdown();
- return Common::Error(Common::kUnknownError, "Failed to initialize resources");
+ return Common::Error(Common::kUnknownError, _("Failed to initialize resources"));
}
if (warnUserAboutUnsupportedGame()) {
@@ -875,7 +876,7 @@ void BladeRunnerEngine::gameTick() {
if (!_kia->isOpen() && !_sceneScript->isInsideScript() && !_aiScripts->isInsideScript()) {
if (!_settings->openNewScene()) {
- Common::Error runtimeError = Common::Error(Common::kUnknownError, "A required game resource was not found");
+ Common::Error runtimeError = Common::Error(Common::kUnknownError, _("A required game resource was not found"));
GUI::MessageDialog dialog(runtimeError.getDesc());
dialog.runModal();
return;
@@ -2000,11 +2001,11 @@ bool BladeRunnerEngine::loadGame(Common::SeekableReadStream &stream) {
){
Common::String warningMsg;
if (!_cutContent) {
- warningMsg = "WARNING: This game was saved in Restored Cut Content mode, but you are playing in Original Content mode. The mode will be adjusted to Restored Cut Content for this session until you completely Quit the game.";
+ warningMsg = _("WARNING: This game was saved in Restored Cut Content mode, but you are playing in Original Content mode. The mode will be adjusted to Restored Cut Content for this session until you completely Quit the game.");
} else {
- warningMsg = "WARNING: This game was saved in Original Content mode, but you are playing in Restored Cut Content mode. The mode will be adjusted to Original Content mode for this session until you completely Quit the game.";
+ warningMsg = _("WARNING: This game was saved in Original Content mode, but you are playing in Restored Cut Content mode. The mode will be adjusted to Original Content mode for this session until you completely Quit the game.");
}
- GUI::MessageDialog dialog(warningMsg, "Continue", 0);
+ GUI::MessageDialog dialog(warningMsg, _("Continue"), 0);
dialog.runModal();
_cutContent = !_cutContent;
// force a Key Up event, since we need it to remove the KIA