Xliff is an XML-based format that enables translators to concentrate on the text to be translated. Likewise, since it's a standard, manipulating xliff files makes Localization
Engineering easier: Once you have converters written for your source file formats, you can simply write new tools to deal with xliff and not worry about the original file format. it also supports a full localization process by providing tags and attributes
For review comments, the translation status of individual strings, and metrics such as word counts of the source sentences
Many Android Developers may find some resource strings in/RES/values/string. XML contains nodes similar to xliff. xliff is the abbreviation of XML localization interchange file format. The Chinese name is the XML localized data exchange format. for Android resource strings, there may be <xliff: G id = "file_name"> % 1 $ S </xliff: G> below. Here, we can define the ID as needed, % 1 $ S is a bit like the string formatting mark in C #. $ D represents an integer. Here 1% represents the first replaceable amount, if a string contains multiple variables to be replaced
<String name = "wangjieming">
Hello <xliff: G id = "file_name"> % 1 $ S </xliff: G> aaaaaaaaaaaaa
<Xliff: G id = "exact_reason"> % 2 $ S </xliff: G>
"</String>
Textview TV = (textview) findviewbyid (R. Id. textview1 );
String info = getresources (). getstring (R. String. wangjieming, "wangjieming", "13312344321 ");
TV. settext (Info );
This sentence is very important ~
Adding the xmlns of xliff to the string will be OK.
<Resources xmlns: xliff = "urn: Oasis: names: TC: xliff: Document: 1.2">