translate-python icon indicating copy to clipboard operation
translate-python copied to clipboard

Autodetect doesn't work.

Open PranavSandeep opened this issue 3 years ago • 3 comments

I tried to use autodetect in both command-line and in the module. In both the instances, I get an error like this:

"'' 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"

Python version: 3.9.4 Translate module version: 3.5.0

Thank you.

PranavSandeep avatar Jun 16 '21 15:06 PranavSandeep

I face this error rrr

mennatallah644 avatar Jun 20 '21 16:06 mennatallah644

From the command line, if i specify -f en it works. If not, I got the above error message because autodetect is not kicking in and some default of empty string is being used for the from language.

#69 apparently describes the same problem and is also open

demongolem-biz avatar Jun 21 '21 15:06 demongolem-biz

I meet the same problem: translate-cli -t zh "This is a pen."

Translation: 'AUTODETECT' 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

worldwar2008 avatar Mar 10 '23 00:03 worldwar2008