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

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
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): # noqa: U100 86 def getTextToSpeechData(self, requestObject, text, language): # noqa: U-100
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 (unused) 90 @param requestObject reference to the request object (unused)
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 # noqa: U100 102 self, requestObject, text, originalLanguage, translationLanguage # noqa: U-100
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 (unused) 107 @param requestObject reference to the request object (unused)

eric ide

mercurial