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

Adds surrounding " quotes to strings with markup. #31

Open
murraycu opened this issue Nov 18, 2014 · 0 comments
Open

Adds surrounding " quotes to strings with markup. #31

murraycu opened this issue Nov 18, 2014 · 0 comments

Comments

@murraycu
Copy link

Unescaped markup is apparently normal in Android strings.xml files, according to:
http://developer.android.com/guide/topics/resources/string-resource.html

For instance, my values/strings.xml can have this:

<string name="about_text2">This android app was developed by <a href="http://murrayc.com/">Murray Cumming</a></string>

And my values-de/strings.xml can have this translation:

<string name="about_text2">Diese Android App wurde von <a href="http://murrayc.com/">Murray Cumming</a> entwickelt.</string>

However, when I export and import with a2po, that translation changes to:

<string name="about_text2">"Diese Android App wurde von "<a href="http://murrayc.com/">Murray Cumming</a>" entwickelt."</string>

Notice the extra quotes around the whole string and around the markup. Android seems to ignore them, and they don't appear in the .po file when I export again, but it's pretty strange. I'd feel better if I knew that it's really legal and correct.

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

1 participant