diff options
author | Thierry Crozat | 2010-09-15 23:25:46 +0000 |
---|---|---|
committer | Thierry Crozat | 2010-09-15 23:25:46 +0000 |
commit | 057056b8d335ab3fee8644e066e9db0a06451a90 (patch) | |
tree | faab222cfc85c6435faf6bbfa0fec1e0ddffee2c /engines/scumm/scumm.cpp | |
parent | b77434c415f22aad57251b61014a1d66971c950c (diff) | |
download | scummvm-rg350-057056b8d335ab3fee8644e066e9db0a06451a90.tar.gz scummvm-rg350-057056b8d335ab3fee8644e066e9db0a06451a90.tar.bz2 scummvm-rg350-057056b8d335ab3fee8644e066e9db0a06451a90.zip |
I18N: Add translation for load/save success or failure messages
Also improve and update the french translation.
svn-id: r52740
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 75c507565c..80df889a56 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -29,6 +29,7 @@ #include "common/events.h" #include "common/EventRecorder.h" #include "common/system.h" +#include "common/translation.h" #include "engines/util.h" @@ -2167,14 +2168,14 @@ void ScummEngine::scummLoop_handleSaveLoad() { if (_saveLoadFlag == 1) { success = saveState(_saveLoadSlot, _saveTemporaryState); if (!success) - errMsg = "Failed to save game state to file:\n\n%s"; + errMsg = _("Failed to save game state to file:\n\n%s"); if (success && _saveTemporaryState && VAR_GAME_LOADED != 0xFF && _game.version <= 7) VAR(VAR_GAME_LOADED) = 201; } else { success = loadState(_saveLoadSlot, _saveTemporaryState); if (!success) - errMsg = "Failed to load game state from file:\n\n%s"; + errMsg = _("Failed to load game state from file:\n\n%s"); if (success && _saveTemporaryState && VAR_GAME_LOADED != 0xFF) VAR(VAR_GAME_LOADED) = (_game.version == 8) ? 1 : 203; @@ -2186,7 +2187,7 @@ void ScummEngine::scummLoop_handleSaveLoad() { } else if (_saveLoadFlag == 1 && _saveLoadSlot != 0 && !_saveTemporaryState) { // Display "Save successful" message, except for auto saves char buf[256]; - snprintf(buf, sizeof(buf), "Successfully saved game state in file:\n\n%s", filename.c_str()); + snprintf(buf, sizeof(buf), _("Successfully saved game state in file:\n\n%s"), filename.c_str()); GUI::TimedMessageDialog dialog(buf, 1500); runDialog(dialog); |