Issue
Characters are not escaping correctly with CDATA tags.
Answer
Best practices using CDATA tags--you want the following to appear on our platform:
<b>I say hello world</b>
DO Do encase entire string with CDATA. |
<string name="hello"><![CDATA[<b>I say hello world</b>]]></string> |
DO NOT |
DO NOT have multiple CDATA tags in one string <string name="hello"><![CDATA[<b>]]>I say hello world<![CDATA[</b>]]></string>
|
DO NOT encase a CDATA tag within another CDATA tag <string name="hello"><![CDATA[<b>I say<![CDATA[extra tag]]>hello world]]></string> |
DO NOT have text before or after the CDATA tags. This will cause issues doing import and export
<string name="hello">I say<![CDATA[<b>hello world</b>]]></string>
|
Lastly, DO NOT manually add CDATA tags through the online platform. Any CDATA tags should exist in the imported source file.
*Note: Android XML HTML tags do not require CDATA tags to escape correctly.
Comments
6 comments
Thank you for assisting individuals in obtaining the information they require. As usual, fantastic work. Continue your excellent work!!!
Contact basket random
Thus, we will count a placeholder as one word to compensate the effort of translators to take care of them. Same concept applies to HTML tags or any words or numbers that need not to be translated like yacine tv
To recognize the effort translators put into managing them, each placeholder will be counted as one word. This approach also applies to HTML tags and elements like specific names or numbers that don't need translation, such as 'Yacine TV' Illinois Pass
The Team will count a placeholder as one word to compensate the effort of translators to take care of them. Same concept applies to HTML tags or any words or numbers that need not to be translated like Get Xit FF Free Download.
To avoid issues with character escaping using CDATA tags, always wrap the entire string in a single CDATA block (e.g.,
<![CDATA[<b>I say hello world</b>]]>
). Do not use multiple or nested CDATA tags, add text outside the CDATA block, or insert CDATA manually on the platform only include them in the source file. Note that Android XML handles HTML tags without needing CDATA. chimney sweep seo expertThis article helped clarify the issue! I ran into the same problem while setting up a project that involved translations for fintechrevo com, and now I understand why those extra languages appeared. Thanks!
Please sign in to leave a comment.