-
Notifications
You must be signed in to change notification settings - Fork 50
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
Single % sign in strings.xml #26
Comments
There might be a bug here. Part of the problem seems to be that Android behaves strangely here: http://stackoverflow.com/questions/4414389/android-xml-percent-symbol That is, if you want to use formatting on your string, we will need to use "%%". If you use "%%" without passing it through a formatting function, it will output two percent signs. Of course, android2po cannot know how you will use the string on your source code. I see a couple of options:
|
I needed this too, and we use formatted="false" in our XML. A solution for this is submitted with #73 |
Hi
If a string in strings.xml contains a single "%" which should be shown in the UI, android2po doesn't seem to convert this into "%%" upon export, and back into "%" upon import. Shouldn't it do this? If I use "%%" in strings.xml, both are shown in the UI.
If I'm not mistaken, a string like:
"VAT in Denmark is 25%" should be converted into "VAT in Denmark is 25%%"
while:
"My name is %1$s." should remain with one %.
I have a translator mentioning that this causes problems in the translation process.
Please see: pryds/ve#15
The text was updated successfully, but these errors were encountered: