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