Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please ...add "translate.google.cn" translation engine? #21

Closed
speeed001 opened this issue Aug 11, 2020 · 17 comments
Closed

Please ...add "translate.google.cn" translation engine? #21

speeed001 opened this issue Aug 11, 2020 · 17 comments

Comments

@speeed001
Copy link

Hello,

Because China cannot access translate.google.com

translate.google.cn is the address that Google can visit in China. I wonder if this interface can be added?

please

@FilipePS
Copy link
Owner

Test this extension to see if it works.
Just download the file and then open it with firefox.
https://filebin.net/wuhxrajerxawvpqv

@speeed001
Copy link
Author

测试此扩展以查看是否有效。
只需下载文件,然后使用Firefox打开即可。
https://filebin.net/wuhxrajerxawvpqv

Thank you I tried it and it didn't work

@FilipePS
Copy link
Owner

Open the Google Translate website, press "F12" to open the developer tools panel. Click on the "Network" tab. Type something to be translated. Several requests will appear, let me know the urls of those requests.

@FilipePS
Copy link
Owner

Download this other extension and see if it works.
https://filebin.net/wuhxrajerxawvpqv

@speeed001
Copy link
Author

Download this other extension and see if it works.
https://filebin.net/wuhxrajerxawvpqv

Sorry, it still doesn't work

@FilipePS
Copy link
Owner

Do you know any proxy or vpn from Mainland China, which allows me to see what's going on?

@speeed001
Copy link
Author

Do you know any proxy or vpn from Mainland China, which allows me to see what's going on?

I'm sorry I can't find it, but I tried to solve it with version 7.1
contentScript_google.js

ranslate.google.com/translate_a/element.js → translate.google.cn/translate_a/element.js

@FilipePS
Copy link
Owner

@speeed001
Copy link
Author

Install version 6.7
https://addons.mozilla.org/pt-BR/firefox/addon/traduzir-paginas-web/versions/?src=search

No, I can only do it after using a VPN

@FilipePS
Copy link
Owner

Install version 6.7 and in the settings change "Use the new translation algorithm" from "Yes (recommended)" to "No (use widgets)".

@FilipePS
Copy link
Owner

Does Yandex translation work normally?

@speeed001
Copy link
Author

Does Yandex translation work normally?

Yes, Yandex translation works normally

@FilipePS
Copy link
Owner

FilipePS commented Sep 6, 2020

Do you still use the extension? Could you pass an email address to a private message?

@linsui
Copy link

linsui commented Sep 6, 2020

Here is a proxy to China. https://www.transocks.com/
And Saladict is using following request which is accessible in China directly:

https://translate.googleapis.com/translate_a/single?client=gtx&dt=t&sl=auto&tl=zh-CN&q=Do%20you%20still%20use%20the%20extension%3F%20Could%20you%20pass%20an%20email%20address%20to%20a%20private%20message%3F

See https://github.com/crimx/ext-saladict/search?q=translate.googleapis.com&unscoped_q=translate.googleapis.com

@FilipePS
Copy link
Owner

FilipePS commented Sep 6, 2020

I did some tests and just can't understand. Sometimes wikipedia worked, sometimes it didn't.
The widgets also worked on one site, but did not work on another.
This government censorship algorithm to be somewhat random at times.
The only thing I can do is to leave Yandex as the default translation engine for the Chinese.

@FilipePS FilipePS pinned this issue Sep 13, 2020
@ghcsd
Copy link
Contributor

ghcsd commented Sep 15, 2020

I did some tests and just can't understand. Sometimes wikipedia worked, sometimes it didn't.
The widgets also worked on one site, but did not work on another.
This government censorship algorithm to be somewhat random at times.
The only thing I can do is to leave Yandex as the default translation engine for the Chinese.

I can confirm that simply replacing the translate.google.com domain with translate.google.cn in the following code can work in China.

return fetch("https://translate.google.com", {

@FilipePS FilipePS unpinned this issue Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants