Ticket #8695: translation-marked-messages2.patch

File translation-marked-messages2.patch, 48.5 KB (added by jvprat, 17 years ago)
  • gui/newgui.cpp

     
    3434#include "gui/ThemeClassic.h"
    3535
    3636#include "common/config-manager.h"
     37#include "common/translation.h"
    3738
    3839DECLARE_SINGLETON(GUI::NewGui);
    3940
     
    106107           loadClassicTheme = false;
    107108        } else {
    108109           loadClassicTheme = true;
    109            warning("falling back to classic style");
     110           warning(_t("falling back to classic style"));
    110111        }
    111112#endif
    112113       
     
    114115                _theme = new ThemeClassic(_system);
    115116                assert(_theme);
    116117                if (!_theme->init()) {
    117                         error("Couldn't initialize classic theme");
     118                        error(_t("Couldn't initialize classic theme"));
    118119                }
    119120        }
    120121
     
    151152                                _theme = new ThemeModern(_system, style, &cfg);
    152153#endif
    153154                        else
    154                                 warning("Unsupported theme type '%s'", styleType.c_str());
     155                                warning(_t("Unsupported theme type '%s'"), styleType.c_str());
    155156                } else {
    156                         warning("Config '%s' is NOT usable for themes or not found", style.c_str());
     157                        warning(_t("Config '%s' is NOT usable for themes or not found"), style.c_str());
    157158                }
    158159        }
    159160        cfg.clear();
     
    162163                return (!oldTheme.empty() ? loadNewTheme(oldTheme) : false);
    163164
    164165        if (!_theme->init()) {
    165                 warning("Could not initialize your preferred theme");
     166                warning(_t("Could not initialize your preferred theme"));
    166167                delete _theme;
    167168                _theme = 0;
    168169                loadNewTheme(oldTheme);
  • gui/KeysDialog.h

     
    3030#include "gui/dialog.h"
    3131#include "gui/ListWidget.h"
    3232#include "common/str.h"
     33#include "common/translation.h"
    3334
    3435namespace GUI {
    3536
    3637class KeysDialog : public GUI::Dialog {
    3738public:
    38         KeysDialog(const Common::String &title = "Choose an action to map");
     39        KeysDialog(const Common::String &title = _("Choose an action to map"));
    3940
    4041        virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
    4142        virtual void handleKeyUp(Common::KeyState state);
  • gui/themebrowser.cpp

     
    2828#include "gui/widget.h"
    2929#include "gui/theme.h"
    3030#include "common/fs.h"
     31#include "common/translation.h"
    3132
    3233#ifdef MACOSX
    3334#include "CoreFoundation/CoreFoundation.h"
     
    4849ThemeBrowser::ThemeBrowser() : Dialog("browser") {
    4950        _fileList = 0;
    5051
    51         new StaticTextWidget(this, "browser_headline", "Select a Theme");
     52        new StaticTextWidget(this, "browser_headline", _("Select a Theme"));
    5253
    5354        // Add file list
    5455        _fileList = new ListWidget(this, "browser_list");
     
    5859        _fileList->setHints(THEME_HINT_PLAIN_COLOR);
    5960
    6061        // Buttons
    61         new ButtonWidget(this, "browser_cancel", "Cancel", kCloseCmd, 0);
    62         new ButtonWidget(this, "browser_choose", "Choose", kChooseCmd, 0);
     62        new ButtonWidget(this, "browser_cancel", _("Cancel"), kCloseCmd, 0);
     63        new ButtonWidget(this, "browser_choose", _("Choose"), kChooseCmd, 0);
    6364}
    6465
    6566void ThemeBrowser::open() {
  • gui/ThemeModern.cpp

     
    3434
    3535#include "common/config-manager.h"
    3636#include "common/file.h"
     37#include "common/translation.h"
    3738
    3839#define kShadowTr0 8
    3940#define kShadowTr1 16
     
    7677                _configFile = *cfg;
    7778        } else {
    7879                if (!loadConfigFile(stylefile)) {
    79                         warning("Can not find theme config file '%s'", (stylefile + ".ini").c_str());
     80                        warning(_t("Can not find theme config file '%s'"), (stylefile + ".ini").c_str());
    8081                        return;
    8182                }
    8283        }
     
    8788        _configFile.getKey("version", "theme", temp);
    8889        if (atoi(temp.c_str()) != THEME_VERSION) {
    8990                // TODO: improve this detection and handle it nicer
    90                 warning("Theme config uses a different version (you have: '%s', needed is: '%d')", temp.c_str(), THEME_VERSION);
     91                warning(_t("Theme config uses a different version (you have: '%s', needed is: '%d')"), temp.c_str(), THEME_VERSION);
    9192                return;
    9293        }
    9394
    9495        temp.clear();
    9596        _configFile.getKey("type", "theme", temp);
    9697        if (0 != temp.compareToIgnoreCase("modern")) {
    97                 warning("Theme config is not for the modern style theme");
     98                warning(_t("Theme config is not for the modern style theme"));
    9899                return;
    99100        }
    100101
     
    12971298
    12981299                        _fonts[style] = loadFont(temp.c_str());
    12991300                        if (!_fonts[style])
    1300                                 error("Couldn't load %s font '%s'", key.c_str(), temp.c_str());
     1301                                error(_t("Couldn't load %s font '%s'"), key.c_str(), temp.c_str());
    13011302
    13021303                        FontMan.assignFontToName(name, _fonts[style]);
    13031304                }
  • gui/massadd.cpp

     
    3434#include "gui/newgui.h"
    3535#include "gui/widget.h"
    3636
     37#include "common/translation.h"
    3738
     39
    3840namespace GUI {
    3941
    4042/*
     
    7880        // - static text displaying the progress text
    7981        // - (future) a listbox showing all the games we added/are going to add
    8082
    81         new StaticTextWidget(this, "massadddialog_caption",     "Mass Add Dialog");
     83        new StaticTextWidget(this, "massadddialog_caption",     _("Mass Add Dialog"));
    8284
    8385        _dirProgressText = new StaticTextWidget(this, "massadddialog_dirprogress",
    84                                                                                         "... progress ...");
     86                                                                                        _("... progress ..."));
    8587
    8688        _gameProgressText = new StaticTextWidget(this, "massadddialog_gameprogress",
    87                                                                                          "... progress ...");
     89                                                                                         _("... progress ..."));
    8890
    89         _okButton = new ButtonWidget(this, "massadddialog_ok", "OK", kOkCmd, Common::ASCII_RETURN);
     91        _okButton = new ButtonWidget(this, "massadddialog_ok", _("OK"), kOkCmd, Common::ASCII_RETURN);
    9092        _okButton->setEnabled(false);
    9193
    92         new ButtonWidget(this, "massadddialog_cancel", "Cancel", kCancelCmd, Common::ASCII_ESCAPE);
     94        new ButtonWidget(this, "massadddialog_cancel", _("Cancel"), kCancelCmd, Common::ASCII_ESCAPE);
    9395
    9496}
    9597
     
    99101        if (cmd == kOkCmd) {
    100102                // Add all the detected games to the config
    101103                for (GameList::const_iterator iter = _games.begin(); iter != _games.end(); ++iter) {
    102                         printf("  Added gameid '%s', desc '%s'\n",
     104                        printf(_("  Added gameid '%s', desc '%s'\n"),
    103105                                (*iter)["gameid"].c_str(),
    104106                                (*iter)["description"].c_str());
    105107                        addGameToConf(*iter);
     
    166168                // Enable the OK button
    167169                _okButton->setEnabled(true);
    168170
    169                 snprintf(buf, sizeof(buf), "Scan complete!");
     171                snprintf(buf, sizeof(buf), _("Scan complete!"));
    170172                _dirProgressText->setLabel(buf);
    171173       
    172                 snprintf(buf, sizeof(buf), "Discovered %d games.", _games.size());
     174                snprintf(buf, sizeof(buf), _("Discovered %d games."), _games.size());
    173175                _gameProgressText->setLabel(buf);
    174176
    175177        } else {
    176                 snprintf(buf, sizeof(buf), "Scanned %d directories ...", _dirsScanned);
     178                snprintf(buf, sizeof(buf), _("Scanned %d directories ..."), _dirsScanned);
    177179                _dirProgressText->setLabel(buf);
    178180       
    179                 snprintf(buf, sizeof(buf), "Discovered %d games ...", _games.size());
     181                snprintf(buf, sizeof(buf), _("Discovered %d games ..."), _games.size());
    180182                _gameProgressText->setLabel(buf);
    181183        }
    182184
  • gui/message.h

     
    2727
    2828#include "gui/dialog.h"
    2929#include "common/str.h"
     30#include "common/translation.h"
    3031
    3132namespace GUI {
    3233
     
    4142 */
    4243class MessageDialog : public Dialog {
    4344public:
    44         MessageDialog(const Common::String &message, const char *defaultButton = "OK", const char *altButton = 0);
     45        MessageDialog(const Common::String &message, const char *defaultButton = _("OK"), const char *altButton = 0);
    4546
    4647        void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
    4748};
  • gui/KeysDialog.cpp

     
    4242KeysDialog::KeysDialog(const Common::String &title)
    4343        : GUI::Dialog("keysdialog") {
    4444
    45         new ButtonWidget(this, "keysdialog_map", "Map", kMapCmd, 0);
    46         new ButtonWidget(this, "keysdialog_ok", "OK", kOKCmd, 0);
    47         new ButtonWidget(this, "keysdialog_cancel", "Cancel", kCloseCmd, 0);
     45        new ButtonWidget(this, "keysdialog_map", _("Map"), kMapCmd, 0);
     46        new ButtonWidget(this, "keysdialog_ok", _("OK"), kOKCmd, 0);
     47        new ButtonWidget(this, "keysdialog_cancel", _("Cancel"), kCloseCmd, 0);
    4848
    4949        _actionsList = new ListWidget(this, "keysdialog_list");
    5050        _actionsList->setNumberingMode(kListNumberingZero);
    5151
    5252        _actionTitle = new StaticTextWidget(this, "keysdialog_action", title);
    53         _keyMapping = new StaticTextWidget(this, "keysdialog_mapping", "Select an action and click 'Map'");
     53        _keyMapping = new StaticTextWidget(this, "keysdialog_mapping", _("Select an action and click 'Map'"));
    5454
    5555        _actionTitle->setFlags(WIDGET_CLEARBG);
    5656        _keyMapping->setFlags(WIDGET_CLEARBG);
     
    8181                                key = key - Common::ASCII_F1 + SDLK_F1;
    8282#endif
    8383                        if (key != 0)
    84                                 sprintf(selection, "Associated key : %s", SDL_GetKeyName((SDLKey)key));
     84                                sprintf(selection, _("Associated key : %s"), SDL_GetKeyName((SDLKey)key));
    8585                        else
    86                                 sprintf(selection, "Associated key : none");
     86                                sprintf(selection, _("Associated key : none"));
    8787
    8888                        _keyMapping->setLabel(selection);
    8989                        _keyMapping->draw();
     
    9191                break;
    9292        case kMapCmd:
    9393                if (_actionsList->getSelected() < 0) {
    94                                 _actionTitle->setLabel("Please select an action");
     94                                _actionTitle->setLabel(_("Please select an action"));
    9595                } else {
    9696                        char selection[100];
    9797
     
    103103                                key = key - Common::ASCII_F1 + SDLK_F1;
    104104#endif
    105105                        if (key != 0)
    106                                 sprintf(selection, "Associated key : %s", SDL_GetKeyName((SDLKey)key));
     106                                sprintf(selection, _("Associated key : %s"), SDL_GetKeyName((SDLKey)key));
    107107                        else
    108                                 sprintf(selection, "Associated key : none");
     108                                sprintf(selection, _("Associated key : none"));
    109109
    110                         _actionTitle->setLabel("Press the key to associate");
     110                        _actionTitle->setLabel(_("Press the key to associate"));
    111111                        _keyMapping->setLabel(selection);
    112112                        _keyMapping->draw();
    113113                        Actions::Instance()->beginMapping(true);
     
    142142                Actions::Instance()->setMapping((ActionType)_actionSelected, state.ascii);
    143143
    144144                if (state.ascii != 0)
    145                         sprintf(selection, "Associated key : %s", SDL_GetKeyName((SDLKey) state.keycode));
     145                        sprintf(selection, _("Associated key : %s"), SDL_GetKeyName((SDLKey) state.keycode));
    146146                else
    147                         sprintf(selection, "Associated key : none");
     147                        sprintf(selection, _("Associated key : none"));
    148148
    149                 _actionTitle->setLabel("Choose an action to map");
     149                _actionTitle->setLabel(_("Choose an action to map"));
    150150                _keyMapping->setLabel(selection);
    151151                _keyMapping->draw();
    152152                _actionTitle->draw();
  • gui/launcher.cpp

     
    3434#include "common/fs.h"
    3535#include "common/util.h"
    3636#include "common/system.h"
     37#include "common/translation.h"
    3738
    3839#include "gui/about.h"
    3940#include "gui/browser.h"
     
    168169        //
    169170        // 1) The game tab
    170171        //
    171         tab->addTab("Game");
     172        tab->addTab(_("Game"));
    172173
    173174        // GUI:  Label & edit widget for the game ID
    174         new StaticTextWidget(tab, "gameoptions_id", "ID:");
     175        new StaticTextWidget(tab, "gameoptions_id", _("ID:"));
    175176        _domainWidget = new DomainEditTextWidget(tab, "gameoptions_domain", _domain);
    176177
    177178        // GUI:  Label & edit widget for the description
    178         new StaticTextWidget(tab, "gameoptions_name", "Name:");
     179        new StaticTextWidget(tab, "gameoptions_name", _("Name:"));
    179180        _descriptionWidget = new EditTextWidget(tab, "gameoptions_desc", description);
    180181
    181182        // Language popup
    182         _langPopUp = new PopUpWidget(tab, "gameoptions_lang", "Language:", labelWidth);
    183         _langPopUp->appendEntry("<default>");
     183        _langPopUp = new PopUpWidget(tab, "gameoptions_lang", _("Language:"), labelWidth);
     184        _langPopUp->appendEntry(_("<default>"));
    184185        _langPopUp->appendEntry("");
    185186        const Common::LanguageDescription *l = Common::g_languages;
    186187        for (; l->code; ++l) {
    187                 _langPopUp->appendEntry(l->description, l->id);
     188                _langPopUp->appendEntry(_(l->description), l->id);
    188189        }
    189190
    190191        // Platform popup
    191         _platformPopUp = new PopUpWidget(tab, "gameoptions_platform", "Platform:", labelWidth);
    192         _platformPopUp->appendEntry("<default>");
     192        _platformPopUp = new PopUpWidget(tab, "gameoptions_platform", _("Platform:"), labelWidth);
     193        _platformPopUp->appendEntry(_("<default>"));
    193194        _platformPopUp->appendEntry("");
    194195        const Common::PlatformDescription *p = Common::g_platforms;
    195196        for (; p->code; ++p) {
    196                 _platformPopUp->appendEntry(p->description, p->id);
     197                _platformPopUp->appendEntry(_(p->description), p->id);
    197198        }
    198199
    199200        //
    200201        // 3) The graphics tab
    201202        //
    202         tab->addTab("Graphics");
     203        tab->addTab(_("Graphics"));
    203204
    204         _globalGraphicsOverride = new CheckboxWidget(tab, "gameoptions_graphicsCheckbox", "Override global graphic settings", kCmdGlobalGraphicsOverride, 0);
     205        _globalGraphicsOverride = new CheckboxWidget(tab, "gameoptions_graphicsCheckbox", _("Override global graphic settings"), kCmdGlobalGraphicsOverride, 0);
    205206
    206207        addGraphicControls(tab, "gameoptions_");
    207208
    208209        //
    209210        // 4) The audio tab
    210211        //
    211         tab->addTab("Audio");
     212        tab->addTab(_("Audio"));
    212213
    213         _globalAudioOverride = new CheckboxWidget(tab, "gameoptions_audioCheckbox", "Override global audio settings", kCmdGlobalAudioOverride, 0);
     214        _globalAudioOverride = new CheckboxWidget(tab, "gameoptions_audioCheckbox", _("Override global audio settings"), kCmdGlobalAudioOverride, 0);
    214215
    215216        addAudioControls(tab, "gameoptions_");
    216217        addSubtitleControls(tab, "gameoptions_");
     
    218219        //
    219220        // 5) The volume tab
    220221        //
    221         tab->addTab("Volume");
     222        tab->addTab(_("Volume"));
    222223
    223         _globalVolumeOverride = new CheckboxWidget(tab, "gameoptions_volumeCheckbox", "Override global volume settings", kCmdGlobalVolumeOverride, 0);
     224        _globalVolumeOverride = new CheckboxWidget(tab, "gameoptions_volumeCheckbox", _("Override global volume settings"), kCmdGlobalVolumeOverride, 0);
    224225
    225226        addVolumeControls(tab, "gameoptions_");
    226227
    227228        //
    228229        // 6) The MIDI tab
    229230        //
    230         tab->addTab("MIDI");
     231        tab->addTab(_("MIDI"));
    231232
    232         _globalMIDIOverride = new CheckboxWidget(tab, "gameoptions_midiCheckbox", "Override global MIDI settings", kCmdGlobalMIDIOverride, 0);
     233        _globalMIDIOverride = new CheckboxWidget(tab, "gameoptions_midiCheckbox", _("Override global MIDI settings"), kCmdGlobalMIDIOverride, 0);
    233234
    234235        addMIDIControls(tab, "gameoptions_");
    235236
    236237        //
    237238        // 2) The 'Path' tab
    238239        //
    239         tab->addTab("Paths");
     240        tab->addTab(_("Paths"));
    240241
    241242        // These buttons have to be extra wide, or the text will be truncated
    242243        // in the small version of the GUI.
    243244
    244245        // GUI:  Button + Label for the game path
    245         new ButtonWidget(tab, "gameoptions_gamepath", "Game Path:", kCmdGameBrowser, 0);
     246        new ButtonWidget(tab, "gameoptions_gamepath", _("Game Path:"), kCmdGameBrowser, 0);
    246247        _gamePathWidget = new StaticTextWidget(tab, "gameoptions_gamepathText", gamePath);
    247248
    248249        // GUI:  Button + Label for the additional path
    249         new ButtonWidget(tab, "gameoptions_extrapath", "Extra Path:", kCmdExtraBrowser, 0);
     250        new ButtonWidget(tab, "gameoptions_extrapath", _("Extra Path:"), kCmdExtraBrowser, 0);
    250251        _extraPathWidget = new StaticTextWidget(tab, "gameoptions_extrapathText", extraPath);
    251252        if (extraPath.empty() || !ConfMan.hasKey("extrapath", _domain)) {
    252                 _extraPathWidget->setLabel("None");
     253                _extraPathWidget->setLabel(_("None"));
    253254        }
    254255
    255256        // GUI:  Button + Label for the save path
    256         new ButtonWidget(tab, "gameoptions_savepath", "Save Path:", kCmdSaveBrowser, 0);
     257        new ButtonWidget(tab, "gameoptions_savepath", _("Save Path:"), kCmdSaveBrowser, 0);
    257258        _savePathWidget = new StaticTextWidget(tab, "gameoptions_savepathText", savePath);
    258259        if (savePath.empty() || !ConfMan.hasKey("savepath", _domain)) {
    259                 _savePathWidget->setLabel("Default");
     260                _savePathWidget->setLabel(_("Default"));
    260261        }
    261262
    262263        // Activate the first tab
    263264        tab->setActiveTab(0);
    264265
    265266        // Add OK & Cancel buttons
    266         new ButtonWidget(this, "gameoptions_cancel", "Cancel", kCloseCmd, 0);
    267         new ButtonWidget(this, "gameoptions_ok", "OK", kOKCmd, 0);
     267        new ButtonWidget(this, "gameoptions_cancel", _("Cancel"), kCloseCmd, 0);
     268        new ButtonWidget(this, "gameoptions_ok", _("OK"), kOKCmd, 0);
    268269}
    269270
    270271void EditGameDialog::reflowLayout() {
     
    351352                        ConfMan.set("path", gamePath, _domain);
    352353
    353354                String extraPath(_extraPathWidget->getLabel());
    354                 if (!extraPath.empty() && (extraPath != "None"))
     355                if (!extraPath.empty() && (extraPath != _("None")))
    355356                        ConfMan.set("extrapath", extraPath, _domain);
    356357
    357358                String savePath(_savePathWidget->getLabel());
    358                 if (!savePath.empty() && (savePath != "Default"))
     359                if (!savePath.empty() && (savePath != _("Default")))
    359360                        ConfMan.set("savepath", savePath, _domain);
    360361
    361362                Common::Platform platform = (Common::Platform)_platformPopUp->getSelectedTag();
     
    389390                draw();
    390391                break;
    391392        case kCmdChooseSoundFontCmd: {
    392                 BrowserDialog browser("Select SoundFont", false);
     393                BrowserDialog browser(_("Select SoundFont"), false);
    393394
    394395                if (browser.runModal() > 0) {
    395396                        // User made this choice...
    396397                        FilesystemNode file(browser.getResult());
    397398                        _soundFont->setLabel(file.path());
    398399
    399                         if (!file.path().empty() && (file.path() != "None"))
     400                        if (!file.path().empty() && (file.path() != _("None")))
    400401                                _soundFontClearButton->setEnabled(true);
    401402                        else
    402403                                _soundFontClearButton->setEnabled(false);
     
    408409
    409410        // Change path for the game
    410411        case kCmdGameBrowser: {
    411                 BrowserDialog browser("Select directory with game data", true);
     412                BrowserDialog browser(_("Select directory with game data"), true);
    412413                if (browser.runModal() > 0) {
    413414                        // User made his choice...
    414415                        FilesystemNode dir(browser.getResult());
     
    426427
    427428        // Change path for extra game data (eg, using sword cutscenes when playing via CD)
    428429        case kCmdExtraBrowser: {
    429                 BrowserDialog browser("Select additional game directory", true);
     430                BrowserDialog browser(_("Select additional game directory"), true);
    430431                if (browser.runModal() > 0) {
    431432                        // User made his choice...
    432433                        FilesystemNode dir(browser.getResult());
     
    438439        }
    439440        // Change path for stored save game (perm and temp) data
    440441        case kCmdSaveBrowser: {
    441                 BrowserDialog browser("Select directory for saved games", true);
     442                BrowserDialog browser(_("Select directory for saved games"), true);
    442443                if (browser.runModal() > 0) {
    443444                        // User made his choice...
    444445                        FilesystemNode dir(browser.getResult());
     
    454455                String newDomain(_domainWidget->getEditString());
    455456                if (newDomain != _domain) {
    456457                        if (newDomain.empty() || ConfMan.hasGameDomain(newDomain)) {
    457                                 MessageDialog alert("This game ID is already taken. Please choose another one.");
     458                                MessageDialog alert(_("This game ID is already taken. Please choose another one."));
    458459                                alert.runModal();
    459460                                return;
    460461                        }
     
    496497        new StaticTextWidget(this, "launcher_version", gScummVMFullVersion);
    497498#endif
    498499
    499         new ButtonWidget(this, "launcher_quit_button", "Quit", kQuitCmd, 'Q');
    500         new ButtonWidget(this, "launcher_about_button", "About", kAboutCmd, 'B');
    501         new ButtonWidget(this, "launcher_options_button", "Options", kOptionsCmd, 'O');
     500        new ButtonWidget(this, "launcher_quit_button", _("Quit"), kQuitCmd, 'Q');
     501        new ButtonWidget(this, "launcher_about_button", _("About"), kAboutCmd, 'B');
     502        new ButtonWidget(this, "launcher_options_button", _("Options"), kOptionsCmd, 'O');
    502503        _startButton =
    503                         new ButtonWidget(this, "launcher_start_button", "Start", kStartCmd, 'S');
     504                        new ButtonWidget(this, "launcher_start_button", _("Start"), kStartCmd, 'S');
    504505
    505506        // Above the lowest button rows: two more buttons (directly below the list box)
    506507        _addButton =
    507                 new ButtonWidget(this, "launcher_addGame_button", "Add Game...", kAddGameCmd, 'A');
     508                new ButtonWidget(this, "launcher_addGame_button", _("Add Game..."), kAddGameCmd, 'A');
    508509        _editButton =
    509                 new ButtonWidget(this, "launcher_editGame_button", "Edit Game...", kEditGameCmd, 'E');
     510                new ButtonWidget(this, "launcher_editGame_button", _("Edit Game..."), kEditGameCmd, 'E');
    510511        _removeButton =
    511                 new ButtonWidget(this, "launcher_removeGame_button", "Remove Game", kRemoveGameCmd, 'R');
     512                new ButtonWidget(this, "launcher_removeGame_button", _("Remove Game"), kRemoveGameCmd, 'R');
    512513
    513514
    514515        // Add list with game titles
     
    528529        updateButtons();
    529530
    530531        // Create file browser dialog
    531         _browser = new BrowserDialog("Select directory with game data", true);
     532        _browser = new BrowserDialog(_("Select directory with game data"), true);
    532533}
    533534
    534535void LauncherDialog::selectGame(const String &name) {
     
    626627        bool massAdd = (modifiers & Common::KBD_SHIFT) != 0;
    627628       
    628629        if (massAdd) {
    629                 MessageDialog alert("Do you really want to run the mass game detector? "
    630                                                         "This could potentially add a huge number of games.", "Yes", "No");
     630                MessageDialog alert(_("Do you really want to run the mass game detector? "
     631                                                        "This could potentially add a huge number of games."), _("Yes"), _("No"));
    631632                if (alert.runModal() == GUI::kMessageOK && _browser->runModal() > 0) {
    632633                        MassAddDialog massAddDlg(_browser->getResult());
    633634                        massAddDlg.runModal();
     
    666667                int idx;
    667668                if (candidates.empty()) {
    668669                        // No game was found in the specified directory
    669                         MessageDialog alert("ScummVM could not find any game in the specified directory!");
     670                        MessageDialog alert(_("ScummVM could not find any game in the specified directory!"));
    670671                        alert.runModal();
    671672                        idx = -1;
    672673                } else if (candidates.size() == 1) {
     
    678679                        for (idx = 0; idx < (int)candidates.size(); idx++)
    679680                                list.push_back(candidates[idx].description());
    680681
    681                         ChooserDialog dialog("Pick the game:");
     682                        ChooserDialog dialog(_("Pick the game:"));
    682683                        dialog.setList(list);
    683684                        idx = dialog.runModal();
    684685                }
     
    758759}
    759760
    760761void LauncherDialog::removeGame(int item) {
    761         MessageDialog alert("Do you really want to remove this game configuration?", "Yes", "No");
     762        MessageDialog alert(_("Do you really want to remove this game configuration?"), _("Yes"), _("No"));
    762763
    763764        if (alert.runModal() == GUI::kMessageOK) {
    764765                // Remove the currently selected game from the list
     
    870871        // Update the label of the "Add" button depending on whether shift is pressed or not
    871872        int modifiers = g_system->getEventManager()->getModifierState();
    872873        const char *newAddButtonLabel = ((modifiers & Common::KBD_SHIFT) != 0)
    873                 ? "Mass Add..."
    874                 : "Add Game...";
     874                ? _("Mass Add...")
     875                : _("Add Game...");
    875876
    876877        if (_addButton->getLabel() != newAddButtonLabel) {
    877878                _addButton->setLabel(newAddButtonLabel);
  • gui/chooser.cpp

     
    2727#include "gui/chooser.h"
    2828#include "gui/newgui.h"
    2929#include "gui/ListWidget.h"
     30#include "common/translation.h"
    3031
    3132namespace GUI {
    3233
     
    4748        _list->setNumberingMode(kListNumberingOff);
    4849
    4950        // Buttons
    50         new ButtonWidget(this, prefix + "chooser_cancel", "Cancel", kCloseCmd, 0);
     51        new ButtonWidget(this, prefix + "chooser_cancel", _("Cancel"), kCloseCmd, 0);
    5152        _chooseButton = new ButtonWidget(this, prefix + "chooser_ok", buttonLabel, kChooseCmd, 0);
    5253        _chooseButton->setEnabled(false);
    5354}
  • gui/ThemeClassic.cpp

     
    2424
    2525#include "gui/ThemeClassic.h"
    2626#include "gui/eval.h"
     27#include "common/translation.h"
    2728
    2829namespace GUI {
    2930ThemeClassic::ThemeClassic(OSystem *system, const Common::String &config, const Common::ConfigFile *cfg) : Theme() {
     
    663664        _configFile.getKey("version", "theme", temp);
    664665        if (atoi(temp.c_str()) != THEME_VERSION) {
    665666                // TODO: improve this detection and handle it nicer
    666                 warning("Theme config uses a different version (you have: '%s', needed is: '%d')", temp.c_str(), THEME_VERSION);
     667                warning(_t("Theme config uses a different version (you have: '%s', needed is: '%d')"), temp.c_str(), THEME_VERSION);
    667668                _configFile.clear();
    668669
    669670                // force a theme reload here
     
    674675        temp.clear();
    675676        _configFile.getKey("type", "theme", temp);
    676677        if (0 != temp.compareToIgnoreCase("classic")) {
    677                 warning("Theme config is not for the classic style theme");
     678                warning(_t("Theme config is not for the classic style theme"));
    678679                _configFile.clear();
    679680
    680681                // force a theme reload here
  • gui/browser.cpp

     
    3131#include "common/fs.h"
    3232#include "common/system.h"
    3333#include "common/algorithm.h"
     34#include "common/translation.h"
    3435
    3536namespace GUI {
    3637
     
    155156        _fileList->setHints(THEME_HINT_PLAIN_COLOR);
    156157
    157158        // Buttons
    158         new ButtonWidget(this, "browser_up", "Go up", kGoUpCmd, 0);
    159         new ButtonWidget(this, "browser_cancel", "Cancel", kCloseCmd, 0);
    160         new ButtonWidget(this, "browser_choose", "Choose", kChooseCmd, 0);
     159        new ButtonWidget(this, "browser_up", _("Go up"), kGoUpCmd, 0);
     160        new ButtonWidget(this, "browser_cancel", _("Cancel"), kCloseCmd, 0);
     161        new ButtonWidget(this, "browser_choose", _("Choose"), kChooseCmd, 0);
    161162}
    162163
    163164void BrowserDialog::open() {
  • gui/debugger.cpp

     
    2626#include "common/stdafx.h"
    2727
    2828#include "common/system.h"
     29#include "common/translation.h"
    2930
    3031#include "gui/debugger.h"
    3132#if USE_CONSOLE
     
    123124void Debugger::enter() {
    124125#if USE_CONSOLE
    125126        if (_firstTime) {
    126                 DebugPrintf("Debugger started, type 'exit' to return to the game.\n");
    127                 DebugPrintf("Type 'help' to see a little list of commands and variables.\n");
     127                DebugPrintf(_("Debugger started, type 'exit' to return to the game.\n"));
     128                DebugPrintf(_("Type 'help' to see a little list of commands and variables.\n"));
    128129                _firstTime = false;
    129130        }
    130131
    131132        if (_errStr) {
    132                 DebugPrintf("ERROR: %s\n\n", _errStr);
     133                DebugPrintf(_("ERROR: %s\n\n"), _errStr);
    133134                free(_errStr);
    134135                _errStr = NULL;
    135136        }
     
    146147        // and tab completion of the console. It would still require a lot of
    147148        // work, but at least no dependency on a 3rd party library...
    148149
    149         printf("Debugger entered, please switch to this console for input.\n");
     150        printf(_t("Debugger entered, please switch to this console for input.\n"));
    150151
    151152        int i;
    152153        char buf[256];
  • common/advancedDetector.cpp

     
    3333#include "common/md5.h"
    3434#include "common/advancedDetector.h"
    3535#include "common/config-manager.h"
     36#include "common/translation.h"
    3637
    3738namespace Common {
    3839
     
    6667                        }
    6768                        g++;
    6869                }
    69                 error("Engine %s doesn't have its singleid specified in ids list", params.singleid);
     70                error(_t("Engine %s doesn't have its singleid specified in ids list"), params.singleid);
    7071        }
    7172
    7273        return GameList(params.list);
     
    8687                        if (o->platform != Common::kPlatformUnknown)
    8788                                ConfMan.set("platform", Common::getPlatformCode(o->platform));
    8889
    89                         warning("Target upgraded from %s to %s", o->from, o->to);
     90                        warning(_t("Target upgraded from %s to %s"), o->from, o->to);
    9091
    9192                        if (ConfMan.hasKey("id_came_from_command_line")) {
    92                                 warning("Target came from command line. Skipping save");
     93                                warning(_t("Target came from command line. Skipping save"));
    9394                        } else {
    9495                                ConfMan.flushToDisk();
    9596                        }
     
    116117                        if (0 == scumm_stricmp(gameid, o->from)) {
    117118                                g = findPlainGameDescriptor(o->to, list);
    118119                                if (g && g->description)
    119                                         return GameDescriptor(gameid, "Obsolete game ID (" + Common::String(g->description) + ")");
     120                                        return GameDescriptor(gameid, _t("Obsolete game ID")
     121                                                + Common::String(" (") + Common::String(g->description) + ")");
    120122                                else
    121                                         return GameDescriptor(gameid, "Obsolete game ID");
     123                                        return GameDescriptor(gameid, _t("Obsolete game ID"));
    122124                        }
    123125                        o++;
    124126                }
     
    468470                //
    469471                // Might also be helpful to display the full path (for when this is used
    470472                // from the mass detector).
    471                 printf("Your game version appears to be unknown. Please, report the following\n");
    472                 printf("data to the ScummVM team along with name of the game you tried to add\n");
    473                 printf("and its version/language/etc.:\n");
     473                printf(_t("Your game version appears to be unknown. Please, report the following\n"
     474                        "data to the ScummVM team along with name of the game you tried to add\n"
     475                        "and its version/language/etc.:\n"));
    474476
    475477                for (StringMap::const_iterator file = filesMD5.begin(); file != filesMD5.end(); ++file)
    476478                        printf("  \"%s\", \"%s\", %d\n", file->_key.c_str(), file->_value.c_str(), filesSize[file->_key]);
     
    545547                if (matchedDesc) { // We got a match
    546548                        matched.push_back(matchedDesc);
    547549                        if (params.flags & kADFlagPrintWarningOnFileBasedFallback) {
    548                                 printf("Your game version has been detected using filename matching as a\n");
    549                                 printf("variant of %s.\n", matchedDesc->gameid);
    550                                 printf("If this is an original and unmodified version, please report any\n");
    551                                 printf("information previously printed by ScummVM to the team.\n");
     550                                printf(_t("Your game version has been detected using filename matching as a\n"
     551                                        "variant of %s.\n"), matchedDesc->gameid);
     552                                printf(_t("If this is an original and unmodified version, please report any\n"
     553                                        "information previously printed by ScummVM to the team.\n"));
    552554                        }
    553555                }
    554556        }
  • common/config-manager.cpp

     
    3434#include "common/config-manager.h"
    3535#include "common/file.h"
    3636#include "common/util.h"
     37#include "common/translation.h"
    3738
    3839DECLARE_SINGLETON(Common::ConfigManager);
    3940
     
    120121                                GetWindowsDirectory(oldConfigFile, MAXPATHLEN);
    121122                                strcat(oldConfigFile, "\\" DEFAULT_CONFIG_FILE);
    122123                                if (fopen(oldConfigFile, "r")) {
    123                                         printf("The default location of the config file (scummvm.ini) in ScummVM has changed,\n");
    124                                         printf("under Windows NT4/2000/XP/Vista. You may want to consider moving your config\n");
    125                                         printf("file from the old default location:\n");
    126                                         printf("%s\n", oldConfigFile);
    127                                         printf("to the new default location:\n");
    128                                         printf("%s\n\n", configFile);
     124                                        printf("The default location of the config file (scummvm.ini) in ScummVM has changed,\n"
     125                                                "under Windows NT4/2000/XP/Vista. You may want to consider moving your config\n"
     126                                                "file from the old default location:\n"
     127                                                "%s\n"
     128                                                "to the new default location:\n"
     129                                                "%s\n\n", oldConfigFile, configFile);
    129130                                        strcpy(configFile, oldConfigFile);
    130131                                }
    131132                        }
     
    161162        _filename = filename;
    162163        _domainSaveOrder.clear();
    163164        loadFile(_filename);
    164         printf("Using configuration file: %s\n", _filename.c_str());
     165        printf(_t("Using configuration file: %s\n"), _filename.c_str());
    165166}
    166167
    167168void ConfigManager::loadFile(const String &filename) {
    168169        File cfg_file;
    169170
    170171        if (!cfg_file.open(filename)) {
    171                 printf("Creating configuration file: %s\n", filename.c_str());
     172                printf(_t("Creating configuration file: %s\n"), filename.c_str());
    172173        } else {
    173174                char buf[MAXLINELEN];
    174175                String domain;
     
    262263//              return;
    263264
    264265        if (!cfg_file.open(_filename, File::kFileWriteMode)) {
    265                 warning("Unable to write configuration file: %s", _filename.c_str());
     266                warning(_t("Unable to write configuration file: %s"), _filename.c_str());
    266267        } else {
    267268
    268269                // First write the domains in _domainSaveOrder, in that order.
  • common/util.cpp

     
    2727#include "common/util.h"
    2828#include "common/system.h"
    2929#include "gui/debugger.h"
     30#include "common/translation.h"
    3031
    3132#ifdef _WIN32_WCE
    3233// This is required for the debugger attachment
     
    147148
    148149
    149150const LanguageDescription g_languages[] = {
    150         {"zh", "Chinese (Taiwan)", ZH_TWN},
    151         {"cz", "Czech", CZ_CZE},
    152         {"nl", "Dutch", NL_NLD},
    153         {"en", "English", EN_ANY}, // Generic English (when only one game version exist)
    154         {"gb", "English (GB)", EN_GRB},
    155         {"us", "English (US)", EN_USA},
    156         {"fr", "French", FR_FRA},
    157         {"de", "German", DE_DEU},
    158         {"hb", "Hebrew", HB_ISR},
    159         {"it", "Italian", IT_ITA},
    160         {"jp", "Japanese", JA_JPN},
    161         {"kr", "Korean", KO_KOR},
    162         {"nb", "Norwegian Bokm\xE5l", NB_NOR},
    163         {"pl", "Polish", PL_POL},
    164         {"br", "Portuguese", PT_BRA},
    165         {"ru", "Russian", RU_RUS},
    166         {"es", "Spanish", ES_ESP},
    167         {"se", "Swedish", SE_SWE},
     151        {"zh", _s("Chinese (Taiwan)"), ZH_TWN},
     152        {"cz", _s("Czech"), CZ_CZE},
     153        {"nl", _s("Dutch"), NL_NLD},
     154        {"en", _s("English"), EN_ANY}, // Generic English (when only one game version exist)
     155        {"gb", _s("English (GB)"), EN_GRB},
     156        {"us", _s("English (US)"), EN_USA},
     157        {"fr", _s("French"), FR_FRA},
     158        {"de", _s("German"), DE_DEU},
     159        {"hb", _s("Hebrew"), HB_ISR},
     160        {"it", _s("Italian"), IT_ITA},
     161        {"jp", _s("Japanese"), JA_JPN},
     162        {"kr", _s("Korean"), KO_KOR},
     163        {"nb", _s("Norwegian Bokm\xE5l"), NB_NOR},
     164        {"pl", _s("Polish"), PL_POL},
     165        {"br", _s("Portuguese"), PT_BRA},
     166        {"ru", _s("Russian"), RU_RUS},
     167        {"es", _s("Spanish"), ES_ESP},
     168        {"se", _s("Swedish"), SE_SWE},
    168169        {0, 0, UNK_LANG}
    169170};
    170171
     
    205206
    206207
    207208const PlatformDescription g_platforms[] = {
    208         {"2gs", "2gs", "2gs", "Apple IIgs", kPlatformApple2GS },
    209         {"3do", "3do", "3do", "3DO", kPlatform3DO},
    210         {"acorn", "acorn", "acorn", "Acorn", kPlatformAcorn},
    211         {"amiga", "ami", "amiga", "Amiga", kPlatformAmiga},
    212         {"atari", "atari-st", "st", "Atari ST", kPlatformAtariST},
    213         {"c64", "c64", "c64", "Commodore 64", kPlatformC64},
    214         {"pc", "dos", "ibm", "DOS", kPlatformPC},
     209        {"2gs", "2gs", "2gs", _s("Apple IIgs"), kPlatformApple2GS },
     210        {"3do", "3do", "3do", _s("3DO"), kPlatform3DO},
     211        {"acorn", "acorn", "acorn", _s("Acorn"), kPlatformAcorn},
     212        {"amiga", "ami", "amiga", _s("Amiga"), kPlatformAmiga},
     213        {"atari", "atari-st", "st", _s("Atari ST"), kPlatformAtariST},
     214        {"c64", "c64", "c64", _s("Commodore 64"), kPlatformC64},
     215        {"pc", "dos", "ibm", _s("DOS"), kPlatformPC},
    215216
    216217        // The 'official' spelling seems to be "FM-TOWNS" (e.g. in the Indy4 demo).
    217218        // However, on the net many variations can be seen, like "FMTOWNS",
    218219        // "FM TOWNS", "FmTowns", etc.
    219         {"fmtowns", "towns", "fm", "FM-TOWNS", kPlatformFMTowns},
     220        {"fmtowns", "towns", "fm", _s("FM-TOWNS"), kPlatformFMTowns},
    220221
    221         {"linux", "linux", "linux", "Linux", kPlatformLinux},
    222         {"macintosh", "mac", "mac", "Macintosh", kPlatformMacintosh},
    223         {"pce", "pce", "pce", "PC-Engine", kPlatformPCEngine },
    224         {"nes", "nes", "nes", "NES", kPlatformNES},
    225         {"segacd", "segacd", "sega", "SegaCD", kPlatformSegaCD},
    226         {"windows", "win", "win", "Windows", kPlatformWindows},
     222        {"linux", "linux", "linux", _s("Linux"), kPlatformLinux},
     223        {"macintosh", "mac", "mac", _s("Macintosh"), kPlatformMacintosh},
     224        {"pce", "pce", "pce", _s("PC-Engine"), kPlatformPCEngine },
     225        {"nes", "nes", "nes", _s("NES"), kPlatformNES},
     226        {"segacd", "segacd", "sega", _s("SegaCD"), kPlatformSegaCD},
     227        {"windows", "win", "win", _s("Windows"), kPlatformWindows},
    227228
    228229
    229230        {0, 0, 0, "Default", kPlatformUnknown}
     
    286287
    287288
    288289const RenderModeDescription g_renderModes[] = {
    289         {"hercGreen", "Hercules Green", kRenderHercG},
    290         {"hercAmber", "Hercules Amber", kRenderHercA},
    291         {"cga", "CGA", kRenderCGA},
    292         {"ega", "EGA", kRenderEGA},
    293         {"amiga", "Amiga", kRenderAmiga},
     290        {"hercGreen", _s("Hercules Green"), kRenderHercG},
     291        {"hercAmber", _s("Hercules Amber"), kRenderHercA},
     292        {"cga", _s("CGA"), kRenderCGA},
     293        {"ega", _s("EGA"), kRenderEGA},
     294        {"amiga", _s("Amiga"), kRenderAmiga},
    294295        {0, 0, kRenderDefault}
    295296};
    296297
     
    512513
    513514        // Print the error message to stderr
    514515#ifdef __GP32__
    515         printf("ERROR: %s\n", buf_output);
     516        printf(_t("ERROR: %s\n"), buf_output);
    516517#else
    517518        fprintf(stderr, "%s!\n", buf_output);
    518519#endif
     
    575576        va_end(va);
    576577
    577578#ifdef __GP32__ //ph0x FIXME: implement fprint?
    578         printf("WARNING: %s\n", buf);
     579        printf(_t("WARNING: %s\n"), buf);
    579580#else
    580581#if !defined (__SYMBIAN32__)
    581         fprintf(stderr, "WARNING: %s!\n", buf);
     582        fprintf(stderr, _t("WARNING: %s!\n"), buf);
    582583#endif
    583584#endif
    584585#if defined( USE_WINDBG )
  • sound/mididrv.cpp

     
    3030#include "common/str.h"
    3131#include "common/system.h"
    3232#include "common/util.h"
     33#include "common/translation.h"
    3334#include "sound/mididrv.h"
    3435
    3536/** Internal list of all available 'midi' drivers. */
     
    3738
    3839        // The flags for the "auto" & "null" drivers indicate that they are anything
    3940        // you want it to be.
    40         {"auto", "<default>", MD_AUTO, MDT_MIDI | MDT_PCSPK | MDT_ADLIB | MDT_TOWNS},
    41         {"null", "No music", MD_NULL, MDT_MIDI | MDT_PCSPK | MDT_ADLIB | MDT_TOWNS},
     41        {"auto", _s("<default>"), MD_AUTO, MDT_MIDI | MDT_PCSPK | MDT_ADLIB | MDT_TOWNS},
     42        {"null", _s("No music"), MD_NULL, MDT_MIDI | MDT_PCSPK | MDT_ADLIB | MDT_TOWNS},
    4243
    4344#if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__)
    44         {"windows", "Windows MIDI", MD_WINDOWS, MDT_MIDI},
     45        {"windows", _s("Windows MIDI"), MD_WINDOWS, MDT_MIDI},
    4546#endif
    4647
    4748#if defined(UNIX) && defined(USE_ALSA)
    48         {"alsa", "ALSA", MD_ALSA, MDT_MIDI},
     49        {"alsa", _s("ALSA"), MD_ALSA, MDT_MIDI},
    4950#endif
    5051
    5152#if defined(UNIX) && !defined(__BEOS__) && !defined(MACOSX) && !defined(__MAEMO__)
    52         {"seq", "SEQ", MD_SEQ, MDT_MIDI},
     53        {"seq", _s("SEQ"), MD_SEQ, MDT_MIDI},
    5354#endif
    5455
    5556#if defined(MACOSX)
    56         {"core", "CoreAudio", MD_COREAUDIO, MDT_MIDI},
     57        {"core", _s("CoreAudio"), MD_COREAUDIO, MDT_MIDI},
    5758//      {"coreaudio", "CoreAudio", MD_COREAUDIO, MDT_MIDI},
    58         {"coremidi", "CoreMIDI", MD_COREMIDI, MDT_MIDI},
    59         {"qt", "QuickTime", MD_QTMUSIC, MDT_MIDI},
     59        {"coremidi", _s("CoreMIDI"), MD_COREMIDI, MDT_MIDI},
     60        {"qt", _s("QuickTime"), MD_QTMUSIC, MDT_MIDI},
    6061#endif
    6162
    6263#if defined(PALMOS_MODE)
    6364#       if defined(COMPILE_CLIE)
    64         {"ypa1", "Yamaha Pa1", MD_YPA1, MDT_MIDI},
     65        {"ypa1", _s("Yamaha Pa1"), MD_YPA1, MDT_MIDI},
    6566#       elif defined(COMPILE_ZODIAC) && (defined(DISABLE_SCUMM) || !defined(PALMOS_ARM))
    66         {"zodiac", "Tapwave Zodiac", MD_ZODIAC, MDT_MIDI},
     67        {"zodiac", _s("Tapwave Zodiac"), MD_ZODIAC, MDT_MIDI},
    6768#       endif
    6869#endif
    6970
    7071#if defined(__MORPHOS__)
    71         {"etude", "Etude", MD_ETUDE, MDT_MIDI},
     72        {"etude", _s("Etude"), MD_ETUDE, MDT_MIDI},
    7273#endif
    7374#ifdef USE_FLUIDSYNTH
    74         {"fluidsynth", "FluidSynth", MD_FLUIDSYNTH, MDT_MIDI},
     75        {"fluidsynth", _s("FluidSynth"), MD_FLUIDSYNTH, MDT_MIDI},
    7576#endif
    7677#ifdef USE_MT32EMU
    77         {"mt32", "MT-32", MD_MT32, MDT_MIDI},
     78        {"mt32", _s("MT-32"), MD_MT32, MDT_MIDI},
    7879#endif
    7980
    8081        // The flags for the "adlibe" driver indicate that it can do adlib and MIDI.
    81         {"adlib", "Adlib", MD_ADLIB, MDT_ADLIB},
    82         {"pcspk", "PC Speaker", MD_PCSPK, MDT_PCSPK},
    83         {"pcjr", "IBM PCjr", MD_PCJR, MDT_PCSPK},
    84         {"towns", "FM Towns", MD_TOWNS, MDT_TOWNS},
     82        {"adlib", _s("Adlib"), MD_ADLIB, MDT_ADLIB},
     83        {"pcspk", _s("PC Speaker"), MD_PCSPK, MDT_PCSPK},
     84        {"pcjr", _s("IBM PCjr"), MD_PCJR, MDT_PCSPK},
     85        {"towns", _s("FM Towns"), MD_TOWNS, MDT_TOWNS},
    8586
    8687        {0, 0, MD_NULL, MDT_NONE}
    8788};
  • sound/softsynth/mt32.cpp

     
    3737#include "common/file.h"
    3838#include "common/system.h"
    3939#include "common/util.h"
     40#include "common/translation.h"
    4041
    4142#include "graphics/fontman.h"
    4243#include "graphics/surface.h"
     
    191192                g_system->displayMessageOnOSD((const char *)reportData);
    192193                break;
    193194        case MT32Emu::ReportType_errorControlROM:
    194                 error("Failed to load MT32_CONTROL.ROM");
     195                error(_t("Failed to load MT32_CONTROL.ROM"));
    195196                break;
    196197        case MT32Emu::ReportType_errorPCMROM:
    197                 error("Failed to load MT32_PCM.ROM");
     198                error(_t("Failed to load MT32_PCM.ROM"));
    198199                break;
    199200        case MT32Emu::ReportType_progressInit:
    200201                if (((MidiDriver_MT32 *)userData)->_initialising) {
     
    279280        };
    280281
    281282        g_system->setPalette(dummy_palette, 0, 5);
    282         drawMessage(-1, "Initialising MT-32 Emulator");
     283        drawMessage(-1, _("Initialising MT-32 Emulator"));
    283284        if (!_synth->open(prop))
    284285                return MERR_DEVICE_NOT_AVAILABLE;
    285286        _initialising = false;
  • sound/softsynth/fluidsynth.cpp

     
    2424
    2525#include "common/stdafx.h"
    2626#include "common/scummsys.h"
     27#include "common/translation.h"
    2728
    2829#ifdef USE_FLUIDSYNTH
    2930
     
    113114                return MERR_ALREADY_OPEN;
    114115
    115116        if (!ConfMan.hasKey("soundfont"))
    116                 error("FluidSynth requires a 'soundfont' setting");
     117                error(_t("FluidSynth requires a 'soundfont' setting"));
    117118
    118119        _settings = new_fluid_settings();
    119120
     
    140141
    141142        _soundFont = fluid_synth_sfload(_synth, soundfont, 1);
    142143        if (_soundFont == -1)
    143                 error("Failed loading custom sound font '%s'", soundfont);
     144                error(_t("Failed loading custom sound font '%s'"), soundfont);
    144145
    145146        MidiDriver_Emulated::open();
    146147
  • graphics/mpeg_player.cpp

     
    2929#include "common/system.h"
    3030#include "common/util.h"
    3131#include "graphics/scaler/intern.h"
     32#include "common/translation.h"
    3233
    3334namespace Graphics {
    3435
     
    8283        Common::File f;
    8384
    8485        if (!f.open(tempFile)) {
    85                 warning("Cutscene: %s palette missing", tempFile);
     86                warning(_t("Cutscene: %s palette missing"), tempFile);
    8687                return false;
    8788        }
    8889
     
    131132        _mpegFile = new Common::File();
    132133        sprintf(tempFile, "%s.mp2", name);
    133134        if (!_mpegFile->open(tempFile)) {
    134                 warning("Cutscene: Could not open %s", tempFile);
     135                warning(_t("Cutscene: Could not open %s"), tempFile);
    135136                return false;
    136137        }
    137138
  • backends/platform/sdl/graphics.cpp

     
    2929#include "graphics/fontman.h"
    3030#include "graphics/scaler.h"
    3131#include "graphics/surface.h"
     32#include "common/translation.h"
    3233
    3334static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
    34         {"1x", "Normal (no scaling)", GFX_NORMAL},
     35        {"1x", _s("Normal (no scaling)"), GFX_NORMAL},
    3536        {"2x", "2x", GFX_DOUBLESIZE},
    3637        {"3x", "3x", GFX_TRIPLESIZE},
    3738        {"2xsai", "2xSAI", GFX_2XSAI},
  • backends/platform/wince/wince-sdl.cpp

     
    3232#include "common/events.h"
    3333#include "common/util.h"
    3434#include "common/timer.h"
     35#include "common/translation.h"
    3536
    3637#include "engines/engine.h"
    3738
     
    107108// Low end devices 240x320
    108109
    109110static const OSystem::GraphicsMode s_supportedGraphicsModesLow[] = {
    110         {"1x", "Normal (no scaling)", GFX_NORMAL},
     111        {"1x", _s("Normal (no scaling)"), GFX_NORMAL},
    111112        {0, 0, 0}
    112113};
    113114
    114115// High end device 480x640
    115116
    116117static const OSystem::GraphicsMode s_supportedGraphicsModesHigh[] = {
    117         {"1x", "Normal (no scaling)", GFX_NORMAL},
     118        {"1x", _s("Normal (no scaling)"), GFX_NORMAL},
    118119        {"2x", "2x", GFX_DOUBLESIZE},
    119120#ifndef _MSC_VER // EVC breaks template functions, and I'm tired of fixing them :)
    120121        {"2xsai", "2xSAI", GFX_2XSAI},
  • base/commandLine.cpp

     
    3232
    3333#include "common/config-manager.h"
    3434#include "common/system.h"
     35#include "common/translation.h"
    3536
    3637#include "sound/mididrv.h"
    3738#include "sound/mixer.h"
     
    5455
    5556namespace Base {
    5657
    57 static const char USAGE_STRING[] =
     58static const char USAGE_STRING[] = _s(
    5859        "%s: %s\n"
    5960        "Usage: %s [OPTIONS]... [GAME]\n"
    6061        "\n"
    61         "Try '%s --help' for more options.\n"
     62        "Try '%s --help' for more options.\n")
    6263;
    6364
    6465// DONT FIXME: DO NOT ORDER ALPHABETICALLY, THIS IS ORDERED BY IMPORTANCE/CATEGORY! :)
     
    148149        va_end(va);
    149150
    150151#if !(defined(PALMOS_ARM) || defined(PALMOS_DEBUG) || defined(__GP32__) || defined (__SYMBIAN32__))
    151         printf(USAGE_STRING, s_appName, buf, s_appName, s_appName);
     152        printf(_t(USAGE_STRING), s_appName, buf, s_appName, s_appName);
    152153#endif
    153154        exit(1);
    154155}
     
    253254// Use this for options which have a required (string) value
    254255#define DO_OPTION(shortCmd, longCmd) \
    255256        DO_OPTION_OPT(shortCmd, longCmd, 0) \
    256         if (!option) usage("Option '%s' requires an argument", argv[isLongCmd ? i : i-1]);
     257        if (!option) usage(_t("Option '%s' requires an argument"), argv[isLongCmd ? i : i-1]);
    257258
    258259// Use this for options which have a required integer value
    259260#define DO_OPTION_INT(shortCmd, longCmd) \
    260261        DO_OPTION(shortCmd, longCmd) \
    261262        char *endptr = 0; \
    262263        int intValue; intValue = (int)strtol(option, &endptr, 0); \
    263         if (endptr == NULL || *endptr != 0) usage("--%s: Invalid number '%s'", longCmd, option);
     264        if (endptr == NULL || *endptr != 0) usage(_t("--%s: Invalid number '%s'"), longCmd, option);
    264265
    265266// Use this for boolean options; this distinguishes between "-x" and "-X",
    266267// resp. between "--some-option" and "--no-some-option".
     
    319320                        // Hence it must be the target name. We currently enforce that
    320321                        // this always comes last.
    321322                        if (i != argc - 1)
    322                                 usage("Stray argument '%s'", s);
     323                                usage(_t("Stray argument '%s'"), s);
    323324
    324325                        // We defer checking whether this is a valid target to a later point.
    325326                        return s;
     
    358359
    359360                        DO_OPTION('e', "music-driver")
    360361                                if (MidiDriver::parseMusicDriver(option) < 0)
    361                                         usage("Unrecognized music driver '%s'", option);
     362                                        usage(_t("Unrecognized music driver '%s'"), option);
    362363                        END_OPTION
    363364
    364365                        DO_LONG_OPTION_INT("output-rate")
     
    380381                                        }
    381382                                }
    382383                                if (!isValid)
    383                                         usage("Unrecognized graphics mode '%s'", option);
     384                                        usage(_t("Unrecognized graphics mode '%s'"), option);
    384385                        END_OPTION
    385386
    386387                        DO_OPTION_INT('m', "music-volume")
     
    395396
    396397                        DO_OPTION('q', "language")
    397398                                if (Common::parseLanguage(option) == Common::UNK_LANG)
    398                                         usage("Unrecognized language '%s'", option);
     399                                        usage(_t("Unrecognized language '%s'"), option);
    399400                        END_OPTION
    400401
    401402                        DO_OPTION_INT('s', "sfx-volume")
     
    424425                        DO_LONG_OPTION("platform")
    425426                                int platform = Common::parsePlatform(option);
    426427                                if (platform == Common::kPlatformUnknown)
    427                                         usage("Unrecognized platform '%s'", option);
     428                                        usage(_t("Unrecognized platform '%s'"), option);
    428429                        END_OPTION
    429430
    430431                        DO_LONG_OPTION("soundfont")
     
    449450                        DO_LONG_OPTION("render-mode")
    450451                                int renderMode = Common::parseRenderMode(option);
    451452                                if (renderMode == Common::kRenderDefault)
    452                                         usage("Unrecognized render mode '%s'", option);
     453                                        usage(_t("Unrecognized render mode '%s'"), option);
    453454                        END_OPTION
    454455
    455456                        DO_LONG_OPTION("savepath")
     
    487488
    488489unknownOption:
    489490                        // If we get till here, the option is unhandled and hence unknown.
    490                         usage("Unrecognized option '%s'", argv[i]);
     491                        usage(_t("Unrecognized option '%s'"), argv[i]);
    491492                }
    492493        }
    493494
     
    497498
    498499/** List all supported game IDs, i.e. all games which any loaded plugin supports. */
    499500static void listGames() {
    500         printf("Game ID              Full Title                                            \n"
    501                "-------------------- ------------------------------------------------------\n");
     501        printf(_t("Game ID              Full Title                                            \n"
     502               "-------------------- ------------------------------------------------------\n"));
    502503
    503504        const PluginList &plugins = PluginManager::instance().getPlugins();
    504505        PluginList::const_iterator iter = plugins.begin();
     
    512513
    513514/** List all targets which are configured in the config file. */
    514515static void listTargets() {
    515         printf("Target               Description                                           \n"
    516                "-------------------- ------------------------------------------------------\n");
     516        printf(_t("Target               Description                                           \n"
     517               "-------------------- ------------------------------------------------------\n"));
    517518
    518519        using namespace Common;
    519520        const ConfigManager::DomainMap &domains = ConfMan.getGameDomains();
     
    622623                return false;
    623624        } else if (command == "version") {
    624625                printf("%s\n", gScummVMFullVersion);
    625                 printf("Features compiled in: %s\n", gScummVMFeatures);
     626                printf(_t("Features compiled in: %s\n"), gScummVMFeatures);
    626627                return false;
    627628        } else if (command == "help") {
    628629                printf(HELP_STRING, s_appName);
     
    660661                                ConfMan.set("id_came_from_command_line", "1");
    661662
    662663                } else {
    663                         usage("Unrecognized game target '%s'", command.c_str());
     664                        usage(_t("Unrecognized game target '%s'"), command.c_str());
    664665                }
    665666        }
    666667