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) |