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

branch
eric7
changeset 9495
28ab5f487f71
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9494:0b38ab887b0d 9495:28ab5f487f71
267 if source not in self.__availableTranslations: 267 if source not in self.__availableTranslations:
268 self.__availableTranslations[source] = set() 268 self.__availableTranslations[source] = set()
269 self.__availableTranslations[source].add(target) 269 self.__availableTranslations[source].add(target)
270 270
271 self.availableTranslationsLoaded.emit() 271 self.availableTranslationsLoaded.emit()
272
273
274 def createEngine(plugin, parent=None):
275 """
276 Function to instantiate a translator engine object.
277
278 @param plugin reference to the plugin object
279 @type TranslatorPlugin
280 @param parent reference to the parent object (defaults to None)
281 @type QObject (optional)
282 @return reference to the instantiated translator engine object
283 @rtype IbmWatsonEngine
284 """
285 return IbmWatsonEngine(plugin, parent=parent)

eric ide

mercurial