diff options
author | Paul Gilbert | 2017-09-19 22:50:39 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-19 22:50:39 -0400 |
commit | 37d0b401cb751ac2cb907ec2169ab1ef288c032d (patch) | |
tree | af1782b371cd8c293f95e2461537d5b5b775c13d /engines/titanic/game | |
parent | 00db751e7d01552ee4a0b89a55a8b49bc963a24f (diff) | |
download | scummvm-rg350-37d0b401cb751ac2cb907ec2169ab1ef288c032d.tar.gz scummvm-rg350-37d0b401cb751ac2cb907ec2169ab1ef288c032d.tar.bz2 scummvm-rg350-37d0b401cb751ac2cb907ec2169ab1ef288c032d.zip |
TITANIC: DE: Adding German translations
Diffstat (limited to 'engines/titanic/game')
-rw-r--r-- | engines/titanic/game/head_smash_lever.cpp | 11 | ||||
-rw-r--r-- | engines/titanic/game/transport/pellerator.cpp | 31 |
2 files changed, 27 insertions, 15 deletions
diff --git a/engines/titanic/game/head_smash_lever.cpp b/engines/titanic/game/head_smash_lever.cpp index dabed26478..87f48c5d6c 100644 --- a/engines/titanic/game/head_smash_lever.cpp +++ b/engines/titanic/game/head_smash_lever.cpp @@ -21,6 +21,7 @@ */ #include "titanic/game/head_smash_lever.h" +#include "titanic/translation.h" namespace Titanic { @@ -55,14 +56,14 @@ void CHeadSmashLever::load(SimpleFile *file) { bool CHeadSmashLever::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { if (_enabled) { playMovie(0, 14, 0); - playSound("z#54.wav"); - int soundHandle = playSound("z#45.wav"); - queueSound("z#49.wav", soundHandle); + playSound(TRANSLATE("z#54.wav", "z#585.wav")); + int soundHandle = playSound(TRANSLATE("z#45.wav", "z#576.wav")); + queueSound(TRANSLATE("z#49.wav", "z#580.wav"), soundHandle); _ticks = getTicksCount(); _fieldE4 = true; } else { playMovie(0); - playSound("z#56.wav"); + playSound(TRANSLATE("z#56.wav", "z#587.wav")); } return true; @@ -84,7 +85,7 @@ bool CHeadSmashLever::FrameMsg(CFrameMsg *msg) { CActMsg actMsg2("PlayToEnd"); actMsg2.execute("SmashingStatue"); - playSound("b#16.wav"); + playSound(TRANSLATE("b#16.wav", "b#100.wav")); _fieldE4 = false; } diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp index 4ef5314592..9958226c6b 100644 --- a/engines/titanic/game/transport/pellerator.cpp +++ b/engines/titanic/game/transport/pellerator.cpp @@ -22,15 +22,22 @@ #include "titanic/game/transport/pellerator.h" #include "titanic/core/room_item.h" +#include "titanic/translation.h" namespace Titanic { -static const char *const WAVE_NAMES[10] = { +static const char *const WAVE_NAMES_EN[10] = { "z#465.wav", "z#456.wav", "z#455.wav", "z#453.wav", "z#452.wav", "NoStandingInFunnyWays", "z#450.wav", "z#449.wav", "z#435.wav", "z#434.wav" }; +static const char *const WAVE_NAMES_DE[10] = { + "z#202.wav", "z#193.wav", "z#192.wav", "z#190.wav", + "z#189.wav", "NoStandingInFunnyWays", "z#187.wav", + "z#186.wav", "z#180.wav", "z#179.wav" +}; + BEGIN_MESSAGE_MAP(CPellerator, CTransport) ON_MESSAGE(StatusChangeMsg) ON_MESSAGE(EnterRoomMsg) @@ -62,7 +69,7 @@ void CPellerator::load(SimpleFile *file) { bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) { setVisible(true); - playGlobalSound("z#74.wav", VOL_QUIET, true, true, 0); + playGlobalSound(TRANSLATE("z#74.wav", "z#605.wav"), VOL_QUIET, true, true, 0); int classNum = getPassengerClass(); int newDest = msg->_newStatus; @@ -288,8 +295,11 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) { bool CPellerator::EnterRoomMsg(CEnterRoomMsg *msg) { if (isEquals("PelleratorObject")) { + if (g_language == Common::DE_DEU) + _soundHandle = queueSound("z#200.wav", _soundHandle); + for (int idx = 0; idx < 10; ++idx) - loadSound(WAVE_NAMES[idx]); + loadSound(TRANSLATE(WAVE_NAMES_EN[idx], WAVE_NAMES_DE[idx])); addTimer(10000); } @@ -332,22 +342,22 @@ bool CPellerator::MovieEndMsg(CMovieEndMsg *msg) { switch (_destination) { case 0: - _soundHandle = queueSound("z#429.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("z#429.wav", "z#174.wav"), _soundHandle); break; case 1: - _soundHandle = queueSound("z#430.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("z#430.wav", "z#175.wav"), _soundHandle); break; case 2: - _soundHandle = queueSound("z#431.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("z#431.wav", "z#176.wav"), _soundHandle); break; case 4: - _soundHandle = queueSound("z#428.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("z#428.wav", "z#173.wav"), _soundHandle); break; case 5: - _soundHandle = queueSound("z#433.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("z#433.wav", "z#178.wav"), _soundHandle); break; case 6: - _soundHandle = queueSound("z#432.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("z#432.wav", "z#177.wav"), _soundHandle); break; default: break; @@ -358,7 +368,8 @@ bool CPellerator::MovieEndMsg(CMovieEndMsg *msg) { bool CPellerator::TimerMsg(CTimerMsg *msg) { if (compareRoomNameTo("Pellerator")) { - _soundHandle = queueSound(WAVE_NAMES[getRandomNumber(9)], _soundHandle); + _soundHandle = queueSound(TRANSLATE(WAVE_NAMES_EN[getRandomNumber(9)], + WAVE_NAMES_DE[getRandomNumber(9)]), _soundHandle); addTimer(20000 + getRandomNumber(10000)); } |