You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Autodetection seems to fail, even on your example:
$ translate-cli -t zh "This is a pen."
Translation: '' IS AN INVALID SOURCE LANGUAGE . EXAMPLE: LANGPAIR=EN|IT USING 2 LETTER ISO OR RFC3066 LIKE ZH-CN. ALMOST ALL LANGUAGES SUPPORTED BUT SOME MAY HAVE NO CONTENT
-------------------------
Translated by: MyMemory
Also explicitly asking for autodetection fails:
$ translate-cli -f autodetect -t zh "This is a pen."
$ translate-cli -f 'autodetect' -t zh "This is a pen."
It comes up with the same result, for any target language. Only entering a valid language identifier for source language explicitly instead works as expected:
$ translate-cli -f en -t zh "This is a pen."
Translation: 这是一支笔
-------------------------
Translated by: MyMemory
Trying to use a different service provider fails completely:
$ translate-cli -p deepl -f autodetect -t zh "This is a pen."
Traceback (most recent call last):
File "/home/demo/.local/bin/translate-cli", line 6, in <module>
from translate.__main__ import cli
File "/home/demo/.local/lib/python2.7/site-packages/translate/__main__.py", line 6, in <module>
main()
File "/home/demo/.local/lib/python2.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/demo/.local/lib/python2.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/demo/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/demo/.local/lib/python2.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/demo/.local/lib/python2.7/site-packages/translate/main.py", line 159, in main
translator = Translator(**kwargs)
File "/home/demo/.local/lib/python2.7/site-packages/translate/translate.py", line 25, in __init__
'Please check providers list bellow: {!r}'.format(self.available_providers)
translate.exceptions.InvalidProviderError: Provider class invalid. Please check providers list bellow: ['microsoft', 'mymemory']
Any idea what could cause all this? Maybe the install errors I encountered could cause it?
Autodetection seems to fail, even on your example:
Also explicitly asking for autodetection fails:
It comes up with the same result, for any target language. Only entering a valid language identifier for source language explicitly instead works as expected:
Trying to use a different service provider fails completely:
Any idea what could cause all this? Maybe the install errors I encountered could cause it?
Python 2.7.16
pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7)
P.S.: Many thanks for this great commandline tool!
The text was updated successfully, but these errors were encountered: