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

branch
eric7
changeset 9495
28ab5f487f71
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9494:0b38ab887b0d 9495:28ab5f487f71
149 result = "<p>" + "<hr/>".join([t["text"] for t in translations]) + "</p>" 149 result = "<p>" + "<hr/>".join([t["text"] for t in translations]) + "</p>"
150 150
151 else: 151 else:
152 result = response 152 result = response
153 return result, ok 153 return result, ok
154
155
156 def createEngine(plugin, parent=None):
157 """
158 Function to instantiate a translator engine object.
159
160 @param plugin reference to the plugin object
161 @type TranslatorPlugin
162 @param parent reference to the parent object (defaults to None)
163 @type QObject (optional)
164 @return reference to the instantiated translator engine object
165 @rtype DeepLEngine
166 """
167 return DeepLEngine(plugin, parent=parent)

eric ide

mercurial