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

Allow setting a GoogleTranslate host #259

Open
linsui opened this issue Jun 28, 2022 · 8 comments
Open

Allow setting a GoogleTranslate host #259

linsui opened this issue Jun 28, 2022 · 8 comments
Labels
enhancement New feature or request

Comments

@linsui
Copy link

linsui commented Jun 28, 2022

In China mainland, only translate.google.cn is accessible. I'd like to only use it instead of a random host. Thanks!

@linsui linsui changed the title Allow set a GoogleTranslate host Allow setting a GoogleTranslate host Jun 28, 2022
@rafaelmardojai rafaelmardojai added the enhancement New feature or request label Jun 28, 2022
@mufeedali
Copy link
Member

Would you consider using your location to apply necessary workarounds to be a decent solution for this?

@linsui
Copy link
Author

linsui commented Jul 17, 2022

Do you mean selecting the host based on the system location? I would prefer that it's an option.

@rafaelmardojai
Copy link
Member

@linsui The problem is that the random host is part of the approach to avoid posible Google bans. So exposing this setting to everyone might be a door to problems.

One "invisible" approach that we were thinking was to ask for geolocation access (using the org.freedesktop.portal.Location portal) in the first run so we can apply conditional fixes for the user country.

@linsui
Copy link
Author

linsui commented Jul 17, 2022

Got it! That makes sense. Would it be easier to just check the conectivity? My concern is that some Chinese users may have proxy setup and don't want to use google.cn.

@rafaelmardojai
Copy link
Member

Would it be easier to just check the conectivity?

Right, I guess we could look for the better approach to detect this without user iteration when we get to it.

@rafaelmardojai
Copy link
Member

My concern is that some Chinese users may have proxy setup and don't want to use google.cn

Also probably we will have a prompt before asking for the location, so they could just dismiss it.

@linsui
Copy link
Author

linsui commented Oct 1, 2022

Google shutdown the service in China. So this is not useful to me anymore. 🤷

@mufeedali
Copy link
Member

Google shutdown the service in China

Oh... sorry to hear that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants