Remove backend for do() calls
This commit is contained in:
parent
40a8bc0ce1
commit
628c63f899
33 changed files with 112 additions and 113 deletions
|
|
@ -112,7 +112,7 @@ class Translaboob(ReplApplication):
|
|||
text = self.acquire_input()
|
||||
|
||||
self.start_format(source=text)
|
||||
for backend, translation in self.do('translate', self.LANGUAGE[lan_from], self.LANGUAGE[lan_to], text):
|
||||
for translation in self.do('translate', self.LANGUAGE[lan_from], self.LANGUAGE[lan_to], text):
|
||||
self.format(translation)
|
||||
except (TranslationFail, LanguageNotSupported) as error:
|
||||
print(error, file=self.stderr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue