aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-14 19:28:04 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit7d72fc0d60fef9babbb5a8579b152a42d7f5d3d2 (patch)
treecd3ffee9e15b7615d2169bbbd35291b68a92b69b /gui/widget.cpp
parent8bd7e392657989dd49da592d8b0bf6e14fe50166 (diff)
downloadscummvm-rg350-7d72fc0d60fef9babbb5a8579b152a42d7f5d3d2.tar.gz
scummvm-rg350-7d72fc0d60fef9babbb5a8579b152a42d7f5d3d2.tar.bz2
scummvm-rg350-7d72fc0d60fef9babbb5a8579b152a42d7f5d3d2.zip
TTS: Restrict TTS on linux to only english
Unfortunatedly the encoding used by ScummVM breaks the speech-dispatcher, so after trying to say non-ascii character the connection has to be restarted. So for now I am restricting the GUI TTS to english only.
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r--gui/widget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index d02d64fbeb..1a3986ef43 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -258,6 +258,10 @@ Common::String Widget::cleanupHotkey(const Common::String &label) {
void Widget::read(Common::String str) {
#ifdef USE_TTS
+#if defined(USE_LINUX_TTS) && defined(USE_TRANSLATION)
+ if (ConfMan.get("gui_language") != "C")
+ return;
+#endif
if (ConfMan.hasKey("tts_enabled", "scummvm") &&
ConfMan.getBool("tts_enabled", "scummvm")) {
int volume = (ConfMan.getInt("speech_volume", "scummvm") * 100) / 256;