MOHAWK: Enable riven-demo specific strings for translation

This commit is contained in:
rootfather 2016-10-27 21:31:31 +02:00
parent 4d6f8f2a58
commit 658761df3e
3 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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;

View File

@ -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();
}