Commit 43d23d5a authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents fe551bca a817891d
......@@ -104,7 +104,7 @@ class MachineTranslation(object):
if text.startswith('\xef\xbb\xbf'):
text = text.decode('UTF-8-sig')
# Replace literal \t
text = text.replace(
text = text.strip().replace(
'\t', '\\t'
).replace(
'\r', '\\r'
......
......@@ -59,6 +59,7 @@ GLOSBE_JSON = u'''
}
'''.encode('utf-8')
MYMEMORY_JSON = u'''
\r\n
{"responseData":{"translatedText":"svět"},"responseDetails":"",
"responseStatus":200,
"matches":[
......
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