Closed ZhymabekRoman closed 1 year ago
I have only one solution - write own MyMemory page parser, instead of using API, because in web version of MyMemory auto detection works properly
The autotranslation does seem to work but it returns an "Auto" language response as the source language...
This might be the reason why there is a problem with the language
method
Closed in #95:
In [1]: from translatepy.translators.mymemory import MyMemoryTranslate
In [2]: dl = MyMemoryTranslate()
In [3]: dl.language("language")
Out[3]: LanguageResult(service=Translator(MyMemory), source='language', source_lang=Language(English))
In [4]: dl.language("Bonjour")
Out[4]: LanguageResult(service=Translator(MyMemory), source='Bonjour', source_lang=Language(French))
In [5]:
Same issues: https://github.com/terryyin/translate-python/issues/69 https://github.com/terryyin/translate-python/issues/77 https://github.com/terryyin/translate-python/issues/53