XLIFF

Extension .xml, .xlf, .xliff
Smartling identifier xliff
Example File xliff.xml
Resources

Smartling supports .xlf, .xliff, and .xml files that use the XML Localization Interchange File Format (XLIFF)

Excluding Strings

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.

Directives

Directive Format

<!-- 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

placeholder_format

Values:NONE; C; IOS; PYTHON; JAVA; YAML; QT; RESX
Description:Used to specify a standard placeholder format. See Placeholders in Resource Files for more information.
Examples:
<!-- smartling.placeholder_format = IOS -->

Specifies iOS-style placeholders for the file.

placeholder_format_custom

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.
Examples:
<!-- smartling.placeholder_format_custom = \[.+?\] -->

Any characters surrounded by square brackets will be treated as a placeholder.

xliff_tags_to_placeholders

Values:Comma-separated list of custom XLIFF tags
Description:Content inside the listed custom tags will be captured as a placeholder.
Examples:
<!-- smartling.xliff_tags_to_placeholders = g, mrk -->

Content inside g and mrk tags will be captured as placeholders.

pseudo_inflation

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.
Examples:
<!-- smartling.pseudo_inflation = 80 -->

Downloaded pseudo translations will increase the length of original strings by 80 percent.