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

branch
eric7
changeset 9495
28ab5f487f71
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9494:0b38ab887b0d 9495:28ab5f487f71
231 url = QUrl( 231 url = QUrl(
232 self.TextToSpeechUrl 232 self.TextToSpeechUrl
233 + "?client=tw-ob&ie=utf-8&tl={0}&q={1}".format(language, text) 233 + "?client=tw-ob&ie=utf-8&tl={0}&q={1}".format(language, text)
234 ) 234 )
235 return requestObject.get(url) 235 return requestObject.get(url)
236
237
238 def createEngine(plugin, parent=None):
239 """
240 Function to instantiate a translator engine object.
241
242 @param plugin reference to the plugin object
243 @type TranslatorPlugin
244 @param parent reference to the parent object (defaults to None)
245 @type QObject (optional)
246 @return reference to the instantiated translator engine object
247 @rtype GoogleV1Engine
248 """
249 return GoogleV1Engine(plugin, parent=parent)

eric ide

mercurial