|Extension||.xml, .xlf, .xliff|
Smartling supports .xlf, .xliff, and .xml files that use the XML Localization Interchange File Format (XLIFF)
XLIFF does not support the sltrans directive for marking excluded content. However, for files uploaded from October 2015 onwards, you can use XLIFF’s
translate attribute. To exclude a string from translation, set
translate=no. See the XLIFF Documentation for details on the translate attribute.
<!-- smartling.[directive_name] = [value] -->
The directive must be a single comment on one line, and there should not be any inline trailing symbols after the directive. Directives apply to all strings that follow them. Directives can be changed throughout the file
|Description:||Used to specify a standard placeholder format. See Placeholders in Resource Files for more information.|
Specifies iOS-style placeholders for the file.
|Values:||1. Custom regular expression (pcre)
2. NONE - disable custom placeholders
|Description:||Used to define a custom placeholder format for strings in the file. See Placeholders in Resource Files for more information.|
Any characters surrounded by square brackets will be treated as a placeholder.
|Values:||Comma-separated list of custom XLIFF tags|
|Description:||Content inside the listed custom tags will be captured as a placeholder.|
|Values:||int - Accepted values are 0-100|
|Description:||Sets the percentage by which original strings are inflated when downloading pseudo translations. If this directive is not set, pseudo translations are 30 percent longer than the original strings.|
Downloaded pseudo translations will increase the length of original strings by 80 percent.