aboutsummaryrefslogtreecommitdiff
path: root/engines/cge
diff options
context:
space:
mode:
authorThierry Crozat2016-02-20 21:02:42 +0000
committerThierry Crozat2016-02-20 21:08:34 +0000
commit245afb1fcbf447617401ab14bb693fb22ae76365 (patch)
tree314b616f8781c11ba40b363db793f59d27575657 /engines/cge
parent9769dc24c73f4afb3a9b0f8812b1349c478dbc5e (diff)
downloadscummvm-rg350-245afb1fcbf447617401ab14bb693fb22ae76365.tar.gz
scummvm-rg350-245afb1fcbf447617401ab14bb693fb22ae76365.tar.bz2
scummvm-rg350-245afb1fcbf447617401ab14bb693fb22ae76365.zip
CGE: Translate buttons in load and save dialogs.
Diffstat (limited to 'engines/cge')
-rw-r--r--engines/cge/events.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp
index 24b3a270cf..c2f8982592 100644
--- a/engines/cge/events.cpp
+++ b/engines/cge/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 "cge/events.h"
#include "cge/events.h"
@@ -70,7 +71,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;
@@ -81,7 +82,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;