Commit ca79894b authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 0816a678 6f47ec0d
......@@ -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)]
......@@ -59,7 +59,7 @@ class TMServerTranslation(MachineTranslation):
url = '%s/tmserver/en/%s/unit/%s' % (
MT_TMSERVER.rstrip('/'),
urllib.quote(language),
urllib.quote(text),
urllib.quote(text.encode('utf-8')),
)
response = self.json_req(url)
......
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