Universal Translation
Opened this issue · 1 comments
mamen2022 commented
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 commented
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).