-
Notifications
You must be signed in to change notification settings - Fork 220
Move string.xml html to CDATA #3185
Comments
@Pike |
I think that should be OK. Note, if Pontoon saved those entities, it'd also update the CDATA formatting, so maybe that's the route of least trouble. |
Can you clarify this part? I wouldn't expect the source string to match the previous version, unless the CDATA is ignored by Pontoon. Also, can this be actually tested in some ways? I'd prefer not to rely on a "maybe", because it bit us in the past ;-) |
I expect the source string in Pontoon to be exactly the same, the translations, too. This is all done in parser magic, https://github.com/Pike/compare-locales/blob/b48ca021edf5b0b8a7f8837ad104c540b4024b0a/compare_locales/parser/android.py#L155-L167 effectively. Sadly to use Pontoon, we'd need to fake All untested, just theory. |
@flodolo My plan was to migrate all the encoded XML entieies to CDATA and update the strings keys. Is that the way to go? I'm confused after your conversation above. |
There shouldn't be key changes as long as it's just the encoding and CDATA. |
Is your feature request related to a problem? Please describe.
Per @flodolo's comment seem like using CDATA plays better with the localization flow that using encoded xml entities. We should look into migrating those.
Describe the solution you'd like
Migrate XML entities containing strings like:
FirefoxReality/app/src/main/res/values/strings.xml
Line 619 in f914e0d
to CDATA based:
FirefoxReality/app/src/main/res/values/strings.xml
Lines 1318 to 1328 in f914e0d
The text was updated successfully, but these errors were encountered: