From 79bfe91bfeff0955f4e156f79983fbd494bfb8fe Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 20 Feb 2016 21:03:05 +0000 Subject: HUGO: Translate buttons in load and save dialogs. --- engines/hugo/file.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/hugo') diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp index e2633977a8..7a3538ea63 100644 --- a/engines/hugo/file.cpp +++ b/engines/hugo/file.cpp @@ -32,6 +32,7 @@ #include "common/savefile.h" #include "common/textconsole.h" #include "common/config-manager.h" +#include "common/translation.h" #include "graphics/surface.h" #include "graphics/thumbnail.h" @@ -294,7 +295,7 @@ bool FileManager::saveGame(const int16 slot, const Common::String &descrip) { 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; @@ -396,7 +397,7 @@ bool FileManager::restoreGame(const int16 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