From 41ff2a9f02cdf98f3fb5922f246fe42c799d0423 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 20 Feb 2016 21:04:01 +0000 Subject: TOON: Translate buttons in load and save dialogs. --- engines/toon/toon.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/toon') diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp index 9e2905f454..3ab23a1e51 100644 --- a/engines/toon/toon.cpp +++ b/engines/toon/toon.cpp @@ -27,6 +27,7 @@ #include "common/config-manager.h" #include "common/savefile.h" #include "common/memstream.h" +#include "common/translation.h" #include "engines/advancedDetector.h" #include "engines/util.h" @@ -3334,7 +3335,7 @@ bool ToonEngine::saveGame(int32 slot, const Common::String &saveGameDesc) { Common::String savegameDescription; if (slot == -1) { - GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Save game:", "Save", true); + GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Save game:"), _("Save"), true); savegameId = dialog->runModalWithCurrentTarget(); savegameDescription = dialog->getResultString(); delete dialog; @@ -3426,7 +3427,7 @@ bool ToonEngine::loadGame(int32 slot) { int16 savegameId; if (slot == -1) { - GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser("Restore game:", "Restore", false); + GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"), false); savegameId = dialog->runModalWithCurrentTarget(); delete dialog; } else { -- cgit v1.2.3