Closed ObedH26 closed 3 years ago
Forget to say i runned the command ;pip install translators --upgrade
Its dont change anything
Yes, I got the same error. I think it's google change his strategy.
@NatHsn26 @longway4ml Hi friends,
The service in China and Singapore has been tested without any problems. Can you tell me where the server address is? And it would be better to provide a copy of the source code of the google translation web page homepage.
At present, there is a solution, which is to assign ts._google.language_map={'en':['fr'],'fr':['en']}
in the early stage, so that you can avoid the languagemap being empty , Which makes the language check fail.
Hey guys , thanks iam gonna try this this afternoon:)
The ts._google.language_map , returning me an empty list of language, your trick about to assign language to language is working well, i got now a language list of 2 entry, but im using full of the translators so not gonna use it ahah;(. Well i got the same version of the package 4.7.16 and here is the the server adress which is given to me , i think it is same as my first use : You talking about the last case right ?(Using x server blackened)
And i don’t understand this request sorry need re-explain (im running on iPhone maybe its wont be ok i let you explain me friend ill do what needed) -> : « And it would be better to provide a copy of the source code of the google translation web page homepage. »
@NatHsn26 Hi friend,
Because the language_map
that needs to be verified is obtained from the html source code of the homepage on the web, and it is not available in your region, I want to know how it is different from the code in other places, and then fix this bug.
Ah okok i understand , should i provide you the homepage of the website « https://translate.google.fr/?hl=fr » ? Or other more specify is better(thats the google trad french website main page ). Was working normally just before my wifi break, all information was complete, but yea maybe the problem can be find here idkr ) Should i post the full code of googletranslate french homepage here ? Its a big code i suppose ; i can take a computer on this evening to post the page code here
Hi,
In fact I got 404 error when I tried translate.google.cn in the browser.
But I can normally access to translate.google.com in the browser.
ts.google("我爱你",if_use_cn_host=False Or True) -> translators.apis.TranslatorError: Unsupported to_language[en] in [].
ts._google.language_map is empty {}.
I am in Great China.
Thanks.
@longway4ml [doc about 4xx] 😂
@longway4ml Best to use random sleep_seconds
.
Didn’t mind i can put the google trad website code in a file and join it here ,im gonna do this after
@NatHsn26 Thanks, friend. But website which to be requested is https://translate.google.com
. Or send me emai: shinalone@outlook.com
Okay great gonna do that thanks)
@NatHsn26 Hi friend, I want to know, you used the mobile phone to request before, if it is on the computer side, will there be a problem that the language_map cannot be requested? I guess it is caused by the inconsistency between the simulated request header [computer side] and the detected device [mobile side].
Hey ulion ,i am always on phone for it yea because its not my computer;gonna have one in not a bigg while. What i thought to do was to take code from a mac navigator , but also i could ask to see the code of my iphone website on the mac its maybe more appropriate yea. Well so if i understand good the eventual problem ,the translation package is emulating a computer to reach google link right ? I dont know about this in fact but idk i probably changed nothing which is related to this during repairing wifi or on phone.
Same problem here: "Poland"
Same problem here: "Poland"
Hey mate , i can share you the line command to init all language correctly. I did a little script to generate it because its a long command xD
Can you put it on gist a give a link : ) ?
Hello :) im just getting an error on every of my script with this package used; my box just died one week ago and got repair today. I tried 2 different to_language value and getting this error :
Using France server backend. type word here :Nath there is as much possibility: 24
TranslatorError Traceback (most recent call last)