From 658761df3e4bab632581c83ba8e21814292e6005 Mon Sep 17 00:00:00 2001 From: rootfather Date: Thu, 27 Oct 2016 21:31:31 +0200 Subject: [PATCH] MOHAWK: Enable riven-demo specific strings for translation --- engines/mohawk/POTFILES | 1 + engines/mohawk/riven.cpp | 6 +++--- engines/mohawk/riven_external.cpp | 9 +++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/engines/mohawk/POTFILES b/engines/mohawk/POTFILES index ced02735c71..42d1d084c2b 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 a1eef85a69f..12b4851a9c5 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 125630445e6..fb98145b44e 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(); }