Commit e89c50f4 authored by Michal Čihař's avatar Michal Čihař

Correctly handle Google translations of multiple sentences

parent 32354f1a
......@@ -47,4 +47,7 @@ class GoogleTranslation(MachineTranslation):
oe='UTF-8'
)
return [(response[0][0][0], 100, self.name, text)]
translation = ' '.join([sentence[0] for sentence in response[0]])
source = ' '.join([sentence[1] for sentence in response[0]])
return [(translation, 100, self.name, source)]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment