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

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
85 85
86 def getTextToSpeechData(self, requestObject, text, language): # noqa: U100 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 (unused)
91 @type TranslatorRequest 91 @type TranslatorRequest
92 @param text text to be pronounced 92 @param text text to be pronounced (unused)
93 @type str 93 @type str
94 @param language language code of the text 94 @param language language code of the text (unused)
95 @type str 95 @type str
96 @return tuple with pronounce data or an error string and a success flag 96 @return tuple with pronounce data or an error string and a success flag
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
102 self, requestObject, text, originalLanguage, translationLanguage # noqa: U100 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 (unused)
108 @type TranslatorRequest 108 @type TranslatorRequest
109 @param text text to be translated 109 @param text text to be translated (unused)
110 @type str 110 @type str
111 @param originalLanguage language code of the original 111 @param originalLanguage language code of the original (unused)
112 @type str 112 @type str
113 @param translationLanguage language code of the translation 113 @param translationLanguage language code of the translation (unused)
114 @type str 114 @type str
115 @return tuple of translated text and flag indicating success 115 @return tuple of translated text and flag indicating success (unused)
116 @rtype tuple of (str, bool) 116 @rtype tuple of (str, bool)
117 """ 117 """
118 return self.tr("No translation available"), False 118 return self.tr("No translation available"), False

eric ide

mercurial