185 if translation != translations[-1]: |
185 if translation != translations[-1]: |
186 result += "<br/>" |
186 result += "<br/>" |
187 else: |
187 else: |
188 result = response |
188 result = response |
189 return result, ok |
189 return result, ok |
|
190 |
|
191 |
|
192 def createEngine(plugin, parent=None): |
|
193 """ |
|
194 Function to instantiate a translator engine object. |
|
195 |
|
196 @param plugin reference to the plugin object |
|
197 @type TranslatorPlugin |
|
198 @param parent reference to the parent object (defaults to None) |
|
199 @type QObject (optional) |
|
200 @return reference to the instantiated translator engine object |
|
201 @rtype MicrosoftEngine |
|
202 """ |
|
203 return MicrosoftEngine(plugin, parent=parent) |