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

Respects explicit formatted="false" tag in strings #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bkeller-vuzix
Copy link

@bkeller-vuzix bkeller-vuzix commented Feb 8, 2023

It is valid for Android XML files to have strings that disregard the formatting characters (like percent) by setting the tag formatted="false", such as:

<string name="discount" formatted="false">50% off</string>

This tag was previously not being carried through an export/import cycle. Now it is tracked properly. In the po file we will store the flag "no-c-format" to mean formatted="false" in the XML.

Note: this is only implemented for "string" at this time, not "plurals" and "string-array".

Closes #24 #26

It is valid for Android XML files to have strings that disregard
the formatting characters (like percent) by setting the tag
formatted="false", such as:

   <string name="discount" formatted="false">50% off</string>

This tag was previously not being carried through an export/import
cycle. Now it is tracked properly. In the po file we will store
the flag "no-c-format" to mean formatted="false" in the XML.

Note: this is only implemented for <string> at this time, not
<plurals> and <string-array>.

Closes miracle2k#24
The tox was configured to use notestests which do not support
python 10.
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

Successfully merging this pull request may close these issues.

losing string attribute: formatted="false"
2 participants