178 for sentence in sentences: |
178 for sentence in sentences: |
179 result += sentence.replace("\n", "<br/>") |
179 result += sentence.replace("\n", "<br/>") |
180 else: |
180 else: |
181 result = response |
181 result = response |
182 return result, ok |
182 return result, ok |
|
183 |
|
184 |
|
185 def createEngine(plugin, parent=None): |
|
186 """ |
|
187 Function to instantiate a translator engine object. |
|
188 |
|
189 @param plugin reference to the plugin object |
|
190 @type TranslatorPlugin |
|
191 @param parent reference to the parent object (defaults to None) |
|
192 @type QObject (optional) |
|
193 @return reference to the instantiated translator engine object |
|
194 @rtype YandexEngine |
|
195 """ |
|
196 return YandexEngine(plugin, parent=parent) |