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

branch
eric7
changeset 9495
28ab5f487f71
parent 9473
3f23dbf37dbe
child 9576
be9f8e7e42e0
equal deleted inserted replaced
9494:0b38ab887b0d 9495:28ab5f487f71
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)

eric ide

mercurial