aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrootfather2016-10-27 21:31:31 +0200
committerrootfather2016-10-27 21:31:31 +0200
commit658761df3e4bab632581c83ba8e21814292e6005 (patch)
tree0b143bdbf4811c77eb53374a71753d99d37a0ad7
parent4d6f8f2a5869a599f058a5880adf13062b09a119 (diff)
downloadscummvm-rg350-658761df3e4bab632581c83ba8e21814292e6005.tar.gz
scummvm-rg350-658761df3e4bab632581c83ba8e21814292e6005.tar.bz2
scummvm-rg350-658761df3e4bab632581c83ba8e21814292e6005.zip
MOHAWK: Enable riven-demo specific strings for translation
-rw-r--r--engines/mohawk/POTFILES1
-rw-r--r--engines/mohawk/riven.cpp6
-rw-r--r--engines/mohawk/riven_external.cpp9
3 files changed, 9 insertions, 7 deletions
diff --git a/engines/mohawk/POTFILES b/engines/mohawk/POTFILES
index ced02735c7..42d1d084c2 100644
--- a/engines/mohawk/POTFILES
+++ b/engines/mohawk/POTFILES
@@ -2,4 +2,5 @@ engines/mohawk/detection.cpp
engines/mohawk/dialogs.cpp
engines/mohawk/myst.cpp
engines/mohawk/riven.cpp
+engines/mohawk/riven_external.cpp
engines/mohawk/mohawk.cpp
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index a1eef85a69..12b4851a9c 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -147,8 +147,8 @@ Common::Error MohawkEngine_Riven::run() {
// We need to have a cursor source, or the game won't work
if (!_cursor->hasSource()) {
- Common::String message = "You're missing a Riven executable. The Windows executable is 'riven.exe' or 'rivendmo.exe'. ";
- message += "Using the 'arcriven.z' installer file also works. In addition, you can use the Mac 'Riven' executable.";
+ Common::String message = _("You're missing a Riven executable. The Windows executable is 'riven.exe' or 'rivendmo.exe'. ");
+ message += _("Using the 'arcriven.z' installer file also works. In addition, you can use the Mac 'Riven' executable.");
GUIErrorMessage(message);
warning("%s", message.c_str());
return Common::kNoGameDataFoundError;
@@ -159,7 +159,7 @@ Common::Error MohawkEngine_Riven::run() {
// We need extras.mhk for inventory images, marble images, and credits images
if (!_extrasFile->openFile("extras.mhk")) {
- Common::String message = "You're missing 'extras.mhk'. Using the 'arcriven.z' installer file also works.";
+ Common::String message = _("You're missing 'extras.mhk'. Using the 'arcriven.z' installer file also works.");
GUIErrorMessage(message);
warning("%s", message.c_str());
return Common::kNoGameDataFoundError;
diff --git a/engines/mohawk/riven_external.cpp b/engines/mohawk/riven_external.cpp
index 125630445e..fb98145b44 100644
--- a/engines/mohawk/riven_external.cpp
+++ b/engines/mohawk/riven_external.cpp
@@ -30,6 +30,7 @@
#include "gui/message.h"
#include "common/events.h"
#include "common/system.h"
+#include "common/translation.h"
namespace Mohawk {
@@ -209,8 +210,8 @@ void RivenExternal::runCommand(uint16 argc, uint16 *argv) {
}
void RivenExternal::runDemoBoundaryDialog() {
- GUI::MessageDialog dialog("Exploration beyond this point available only within the full version of\n"
- "the game.");
+ GUI::MessageDialog dialog(_("Exploration beyond this point available only within the full version of\n"
+ "the game."));
dialog.runModal();
}
@@ -651,11 +652,11 @@ void RivenExternal::xalaunchbrowser(uint16 argc, uint16 *argv) {
//
// [YES] [NO]
- GUI::MessageDialog dialog("At this point, the Riven Demo would\n"
+ GUI::MessageDialog dialog(_("At this point, the Riven Demo would\n"
"ask if you would like to open a web browser\n"
"to bring you to the Red Orb store to buy\n"
"the game. ScummVM cannot do that and\n"
- "the site no longer exists.");
+ "the site no longer exists."));
dialog.runModal();
}