Supported Extensions:
.xliff
and .xlf
Example 1:
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2"> <file original="filename.txt" source-language="en" target-language="fr"> <header /> <body> <trans-unit id="red"> <source>Red</source> <target>Rouge</target> </trans-unit> <trans-unit id="blue"> <source>Blue</source> <target>Bleu</target> </trans-unit> </body> </file> </xliff>
Example 2 (with notes):
<?xml version="1.0" encoding="utf-8"?> <xliff version="1.2"> <file original="filename.txt" source-language="en" target-language="fr"> <header /> <body> <trans-unit id="red"> <source>Red</source> <target>Rouge</source> <note>Color red</note> </trans-unit> <trans-unit id="blue"> <source>Blue</source> <target>Bleu</target> <note>Color blue</note> </trans-unit> </body> </file> </xliff>
Example 3 (with translatable = "false" tags):
** only works for Android XML format
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name" translatable="false">OneSky Sample - do not translate this</string>
<!--static text comments-->
<string name="phrase_with_comment">I am a phrase with comments</string>
<!--comments of plural item box, %d is the number of boxes-->
<plurals name="item_box">
<item quantity="one">I got <xliff:g id="count">%d</xliff:g> box</item>
<item quantity="other">I got <xliff:g id="count">%d</xliff:g> boxes</item>
</plurals>
<string-array name="box_option">
<item>Option 1</item>
<item>Option 2</item>
<item>Option 3</item>
<item>Option 4</item>
</string-array>
</resources>
For a more refined XML array formatting, please see this article.
For strings that are tagged as translatable="false", our system will hide the strings automatically (read more about the definition of hidden strings)
Comments
2 comments
That was so amazing. I need more info.
Kohl's Feedback Survey
I appreciate the information and advice you have shared.
Novitasphere Provider Portal
Please sign in to leave a comment.