mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
CGE: Translate buttons in load and save dialogs.
This commit is contained in:
parent
9769dc24c7
commit
245afb1fcb
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user