src/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/TranslationEngine.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10068:7febcdccb2a1 10069:435cc5875135
81 @return flag indicating the Text-to-Speech capability 81 @return flag indicating the Text-to-Speech capability
82 @rtype bool 82 @rtype bool
83 """ 83 """
84 return False 84 return False
85 85
86 def getTextToSpeechData(self, requestObject, text, language): 86 def getTextToSpeechData(self, requestObject, text, language): # noqa: U100
87 """ 87 """
88 Public method to pronounce the given text. 88 Public method to pronounce the given text.
89 89
90 @param requestObject reference to the request object 90 @param requestObject reference to the request object
91 @type TranslatorRequest 91 @type TranslatorRequest
97 @rtype tuple of (QByteArray or str, bool) 97 @rtype tuple of (QByteArray or str, bool)
98 """ 98 """
99 return self.tr("No pronounce data available"), False 99 return self.tr("No pronounce data available"), False
100 100
101 def getTranslation( 101 def getTranslation(
102 self, requestObject, text, originalLanguage, translationLanguage 102 self, requestObject, text, originalLanguage, translationLanguage # noqa: U100
103 ): 103 ):
104 """ 104 """
105 Public method to translate the given text. 105 Public method to translate the given text.
106 106
107 @param requestObject reference to the request object 107 @param requestObject reference to the request object

eric ide

mercurial