diff options
author | Jaromir Wysoglad | 2019-07-17 23:51:58 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 |
commit | ce64528129d4a1ba51e339bd8be3548c4d8cc3bf (patch) | |
tree | a16ca7f095685ea95ea4ffa5c845db0f45ce9e46 /backends/text-to-speech | |
parent | 33f8aadfeb81ead60ce1264f0af681dcdbd4931f (diff) | |
download | scummvm-rg350-ce64528129d4a1ba51e339bd8be3548c4d8cc3bf.tar.gz scummvm-rg350-ce64528129d4a1ba51e339bd8be3548c4d8cc3bf.tar.bz2 scummvm-rg350-ce64528129d4a1ba51e339bd8be3548c4d8cc3bf.zip |
TTS: Make sure that TTS lang matches transMan lang
Diffstat (limited to 'backends/text-to-speech')
-rw-r--r-- | backends/text-to-speech/linux/linux-text-to-speech.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/text-to-speech/linux/linux-text-to-speech.cpp b/backends/text-to-speech/linux/linux-text-to-speech.cpp index 758996dad8..633c107727 100644 --- a/backends/text-to-speech/linux/linux-text-to-speech.cpp +++ b/backends/text-to-speech/linux/linux-text-to-speech.cpp @@ -91,7 +91,11 @@ void LinuxTextToSpeechManager::init() { updateVoices(); _ttsState->_activeVoice = 0; - setLanguage(Common::String("en")); +#ifdef USE_TRANSLATION + setLanguage(TransMan.getCurrentLanguage()); +#else + setLanguage("en"); +#endif } LinuxTextToSpeechManager::~LinuxTextToSpeechManager() { |