aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2016-02-20 21:02:53 +0000
committerThierry Crozat2016-02-20 21:08:34 +0000
commit369d23dc3f1e5b7d482fbb7b7f9c4d76034faae2 (patch)
tree8d0b38e0eead50a7cac0fef1983410c1fda1005d
parent245afb1fcbf447617401ab14bb693fb22ae76365 (diff)
downloadscummvm-rg350-369d23dc3f1e5b7d482fbb7b7f9c4d76034faae2.tar.gz
scummvm-rg350-369d23dc3f1e5b7d482fbb7b7f9c4d76034faae2.tar.bz2
scummvm-rg350-369d23dc3f1e5b7d482fbb7b7f9c4d76034faae2.zip
CGE2: Translate buttons in load and save dialogs.
-rw-r--r--engines/cge2/events.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cge2/events.cpp b/engines/cge2/events.cpp
index 85743c8011..96cecc8e23 100644
--- a/engines/cge2/events.cpp
+++ b/engines/cge2/events.cpp
@@ -30,6 +30,7 @@
#include "gui/message.h"
#include "common/config-manager.h"
#include "common/events.h"
+#include "common/translation.h"
#include "engines/advancedDetector.h"
#include "cge2/events.h"
#include "cge2/text.h"
@@ -63,7 +64,7 @@ bool Keyboard::getKey(Common::Event &event) {
return false;
case Common::KEYCODE_F5:
if (_vm->canSaveGameStateCurrently()) {
- GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Save game:", "Save", true);
+ GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Save game:"), _("Save"), true);
int16 savegameId = dialog->runModalWithCurrentTarget();
Common::String savegameDescription = dialog->getResultString();
delete dialog;
@@ -74,7 +75,7 @@ bool Keyboard::getKey(Common::Event &event) {
return false;
case Common::KEYCODE_F7:
if (_vm->canLoadGameStateCurrently()) {
- GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Restore game:", "Restore", false);
+ GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"), false);
int16 savegameId = dialog->runModalWithCurrentTarget();
delete dialog;