Fix sugar3.speech.SpeechManager get all translated voices

- fix method name,

- return translated voices,

- low impact; method not yet used in any of the most frequently used
  activities,

- old method name retained for compatibility just in case, but
  deprecate.
This commit is contained in:
James Cameron 2017-10-06 12:32:44 +11:00
parent f0b479f068
commit 7c2a2ba94a

View File

@ -314,8 +314,14 @@ class SpeechManager(GObject.GObject):
return None return None
def get_all_traslated_voices(self): def get_all_traslated_voices(self):
""" deprecated after 0.112, due to method name spelling error """
if self._player: if self._player:
return self._player.get_all_voices() return self._player.get_all_translated_voices()
return None
def get_all_translated_voices(self):
if self._player:
return self._player.get_all_translated_voices()
return None return None