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

Universal Translation #128

Open
mamen2022 opened this issue Jun 8, 2016 · 1 comment
Open

Universal Translation #128

mamen2022 opened this issue Jun 8, 2016 · 1 comment

Comments

@mamen2022
Copy link

mamen2022 commented Jun 8, 2016

Hi, i was seeing your code for the google translate script, and you have this:

if has_chinese_charactar(sys.argv[i]):
source_languege = "zh-CN"
target_languege = "en"
else:
source_languege = "en"
target_languege = "zh-CN"

But that if only works with Chinese characters. For the rest of the world, the translation will only work in one way.. There is any chance you can fix this or do you have any ideia how to fix it?
And great App btw 👍

@samundra
Copy link

For now there is no other way than directly editing in the source. just change the source_language and target_language to your liking. You can find the right language code (en, zh-CN from google web translator).

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

2 participants