155 if translation != translations[-1]: |
155 if translation != translations[-1]: |
156 result += "<br/>" |
156 result += "<br/>" |
157 else: |
157 else: |
158 result = response |
158 result = response |
159 return result, ok |
159 return result, ok |
|
160 |
|
161 |
|
162 def createEngine(plugin, parent=None): |
|
163 """ |
|
164 Function to instantiate a translator engine object. |
|
165 |
|
166 @param plugin reference to the plugin object |
|
167 @type TranslatorPlugin |
|
168 @param parent reference to the parent object (defaults to None) |
|
169 @type QObject (optional) |
|
170 @return reference to the instantiated translator engine object |
|
171 @rtype GoogleV2Engine |
|
172 """ |
|
173 return GoogleV2Engine(plugin, parent=parent) |