From b366f64f42d907c17d199fd0daa8868fbdbe33e9 Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Mon, 4 Apr 2011 16:43:24 +1000 Subject: [PATCH] speech: for now only use NVDA's locale for character descriptions, the synth language can still not be entirely trusted yet. --- source/speech.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/speech.py b/source/speech.py index 88b88cf2c..f316980ae 100755 --- a/source/speech.py +++ b/source/speech.py @@ -152,10 +152,8 @@ def speakSpelling(text,locale=None,useCharacterDescriptions=False): if isPaused: cancelSpeech() beenCanceled=False - locale=getSynth().language - if not locale: - from languageHandler import getLanguage - locale=getLanguage() + from languageHandler import getLanguage + locale=getLanguage() if not isinstance(text,basestring) or len(text)==0: return getSynth().speakText(processSymbol("")) if not text.isspace(): -- 2.11.0