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

Output same as Input #36

Open
bubblewrapp4872 opened this issue Apr 19, 2021 · 6 comments
Open

Output same as Input #36

bubblewrapp4872 opened this issue Apr 19, 2021 · 6 comments

Comments

@bubblewrapp4872
Copy link

Hi, thanks for the tool seems great. One problem however - I'm using the python script in windows 10, it asks for all the things but then it works thru all languages and outputs the original file without translating.

Basically strings_es.xml , strings_de.xml etc are all the same as input string.xml file.

@Ra-Na
Copy link
Owner

Ra-Na commented Apr 19, 2021

Can you provide the strings.xml?

@bubblewrapp4872
Copy link
Author

Just to be sure I tried just now with this https://github.com/Ra-Na/GTranslate-strings-xml/blob/master/GoogleTranslate/strings.xml

Same result. It doesn't throw any errors but just outputs the unchanged file.

@Ra-Na
Copy link
Owner

Ra-Na commented Apr 19, 2021

That is odd. I have no way to check it on Windows, you will have to debug by yourself. A good starting point may be the variable "isTranslatable" which may somehow have the wrong value. Try to set it True forcibly.

@bubblewrapp4872
Copy link
Author

Ok, I'll with that

@wakaztahir
Copy link

wakaztahir commented Apr 27, 2021

Try this : https://github.com/wakaztahir/Strings-Translator

Took some code from this repo , to build a ui

@firefinchdev
Copy link
Contributor

@Ra-Na
This issue is happening with me also. The problem is that in the translate function (GTranslate), we return the same text if "notranslate" is present in html.
"notranslate" is present in all the html that we get as a response, which is expected because, <meta name="google" content="notranslate" /> signifies that browsers should not translate this page.

https://stackoverflow.com/questions/2980520/how-to-specify-your-webpages-language-so-google-chrome-doesnt-offer-to-transla

Solution: Remove that if condition

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