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/moves | |
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/moves')
-rw-r--r-- | engines/titanic/moves/enter_sec_class_state.cpp | 13 | ||||
-rw-r--r-- | engines/titanic/moves/exit_pellerator.cpp | 17 |
2 files changed, 16 insertions, 14 deletions
diff --git a/engines/titanic/moves/enter_sec_class_state.cpp b/engines/titanic/moves/enter_sec_class_state.cpp index b7209f83d8..1cb607b09e 100644 --- a/engines/titanic/moves/enter_sec_class_state.cpp +++ b/engines/titanic/moves/enter_sec_class_state.cpp @@ -22,6 +22,7 @@ #include "titanic/moves/enter_sec_class_state.h" #include "titanic/pet_control/pet_control.h" +#include "titanic/translation.h" namespace Titanic { @@ -49,7 +50,7 @@ void CEnterSecClassState::load(SimpleFile *file) { bool CEnterSecClassState::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { if (getPassengerClass() > 2) { - playSound("b#105.wav"); + playSound(TRANSLATE("b#105.wav", "b#84.wav")); petDisplayMessage(1, CLASS_NOT_PERMITTED_IN_AREA); } else if (!compareRoomNameTo("SecClassLittleLift") || _mode == 2) { CActMsg actMsg(getFullViewName().deleteRight(2) + ".S"); @@ -65,20 +66,20 @@ bool CEnterSecClassState::StatusChangeMsg(CStatusChangeMsg *msg) { if (msg->_newStatus == _mode || (_mode == 2 && msg->_newStatus == 3)) { if (_mode == 2) { - _soundHandle = queueSound("b#36.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("b#36.wav", "b#15.wav"), _soundHandle); } else { - _soundHandle = queueSound("b#31.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("b#31.wav", "b#10.wav"), _soundHandle); } if (msg->_newStatus == 3) msg->_newStatus = 2; } else { changeView("SecClassLittleLift.Node 1.N"); if (msg->_newStatus == 1) { - _soundHandle = queueSound("b#32.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("b#32.wav", "b#11.wav"), _soundHandle); } else if (msg->_newStatus == 2) { - _soundHandle = queueSound("b#25.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("b#25.wav", "b#4.wav"), _soundHandle); } else if (msg->_newStatus == 3) { - _soundHandle = queueSound("b#33.wav", _soundHandle); + _soundHandle = queueSound(TRANSLATE("b#33.wav", "b#12.wav"), _soundHandle); msg->_newStatus = 2; } } diff --git a/engines/titanic/moves/exit_pellerator.cpp b/engines/titanic/moves/exit_pellerator.cpp index 3d1438a942..045c0e52bb 100644 --- a/engines/titanic/moves/exit_pellerator.cpp +++ b/engines/titanic/moves/exit_pellerator.cpp @@ -22,6 +22,7 @@ #include "titanic/moves/exit_pellerator.h" #include "titanic/game/transport/pellerator.h" +#include "titanic/translation.h" namespace Titanic { @@ -66,13 +67,13 @@ bool CExitPellerator::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { if (_statics->_v2 != 2) { switch (getRandomNumber(2)) { case 0: - CPellerator::_soundHandle = queueSound("z#457.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#457.wav", "z#194.wav"), CPellerator::_soundHandle); break; case 1: - CPellerator::_soundHandle = queueSound("z#458.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#458.wav", "z#195.wav"), CPellerator::_soundHandle); break; default: - CPellerator::_soundHandle = queueSound("z#464.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#464.wav", "z#201.wav"), CPellerator::_soundHandle); break; } } @@ -95,20 +96,20 @@ bool CExitPellerator::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { break; default: petDisplayMessage(2, EXIT_FROM_OTHER_SIDE); - CPellerator::_soundHandle = queueSound("z#438.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#438.wav", "z#183.wav"), CPellerator::_soundHandle); } } else if (name == "ExitPellerator2") { if (_statics->_v2 == 2) { switch (getRandomNumber(2)) { case 0: - CPellerator::_soundHandle = queueSound("z#457.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#457.wav", "z#194.wav"), CPellerator::_soundHandle); break; case 1: - CPellerator::_soundHandle = queueSound("z#458.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#458.wav", "z#195.wav"), CPellerator::_soundHandle); break; default: - CPellerator::_soundHandle = queueSound("z#464.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#464.wav", "z#201.wav"), CPellerator::_soundHandle); break; } } @@ -117,7 +118,7 @@ bool CExitPellerator::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { changeView("Bar.Node 1.N"); } else { petDisplayMessage(2, EXIT_FROM_OTHER_SIDE); - CPellerator::_soundHandle = queueSound("z#438.wav", CPellerator::_soundHandle); + CPellerator::_soundHandle = queueSound(TRANSLATE("z#438.wav", "z#183.wav"), CPellerator::_soundHandle); } } |