LAB: Added GUI messages to translation

This commit is contained in:
Eugene Sandulenko 2020-08-28 01:08:33 +02:00
parent eb91e34d93
commit 5d9006e11b
4 changed files with 9 additions and 3 deletions

View file

@ -1 +1,4 @@
engines/lab/engine.cpp
engines/lab/processroom.cpp
engines/lab/savegame.cpp
engines/lab/speciallocks.cpp

View file

@ -30,6 +30,7 @@
#include "common/config-manager.h"
#include "common/file.h"
#include "common/translation.h"
#include "gui/message.h"
@ -121,7 +122,7 @@ void LabEngine::handleTrialWarning() {
// Wyrmkeep trial version
_extraGameFeatures = GF_WINDOWS_TRIAL;
GUI::MessageDialog trialMessage("This is a trial Windows version of the game. To play the full version, you will need to use the original interpreter and purchase a key from Wyrmkeep");
GUI::MessageDialog trialMessage(_("This is a trial Windows version of the game. To play the full version, you will need to use the original interpreter and purchase a key from Wyrmkeep"));
trialMessage.runModal();
}
else {

View file

@ -28,6 +28,7 @@
*
*/
#include "common/translation.h"
#include "gui/message.h"
#include "lab/lab.h"
@ -326,7 +327,7 @@ void LabEngine::doActions(const ActionList &actionList) {
// This is a Wyrmkeep Windows trial version, thus stop at this
// point, since we can't check for game payment status
_graphics->readPict(getPictName(true));
GUI::MessageDialog trialMessage("This is the end of the trial version. You can play the full game using the original interpreter from Wyrmkeep");
GUI::MessageDialog trialMessage(_("This is the end of the trial version. You can play the full game using the original interpreter from Wyrmkeep"));
trialMessage.runModal();
break;
}

View file

@ -29,6 +29,7 @@
*/
#include "common/file.h"
#include "common/translation.h"
#include "gui/message.h"
@ -145,7 +146,7 @@ void SpecialLocks::changeTile(uint16 col, uint16 row) {
if (scrolltype != -1) {
if (_vm->getFeatures() & GF_WINDOWS_TRIAL) {
GUI::MessageDialog trialMessage("This puzzle is not available in the trial version of the game");
GUI::MessageDialog trialMessage(_("This puzzle is not available in the trial version of the game"));
trialMessage.runModal();
return;
}