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

Translated Android strings.xml Doesn't Escape String Properly #27

Open
jackcsk opened this issue Jul 27, 2016 · 3 comments
Open

Translated Android strings.xml Doesn't Escape String Properly #27

jackcsk opened this issue Jul 27, 2016 · 3 comments

Comments

@jackcsk
Copy link

jackcsk commented Jul 27, 2016

For example, translation of "Item doesn't exist" would be:

<string name="not_exists">Item doesn't exist</string>

where it is expected to be:

<string name="not_exists">Item doesn\'t exist</string>

See: https://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling

@mrmans0n
Copy link
Owner

I'm afraid you have to escape those strings yourself.

@jackcsk
Copy link
Author

jackcsk commented Jul 28, 2016

Just an idea: would it work if I submit pull-request? (that may take some time, but just a possibility...)

@mrmans0n
Copy link
Owner

Yes, of course! :)

You'd have to take extra care in not escape things already escaped, though. I have myself a bunch of projects where I am escaping in the spreadsheets and not handling that right could make this to fail for me XD

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