Tag content of source file can be visualized in the Editor by clicking Expand Tags under the menu and edited by clicking F2.
Tip
If the XLIFF content contains HTML tagging, select job or project template.
as the file type when creating theFile Types
-
.XLF
-
.XLIFF
-
2.0 Only
Files with the file header
<xliff version="2.0">
Import Options
-
ICU messages are automatically converted to tags. Files with ICU messages cannot contain any inline elements.
-
Imports HTML tags contained in the file. Tags can then be used with HTML File Import Settings.
-
Data from the
<note>
element will be displayed in the Context window.Only a
<note>
in a<unit>
is supported (according to XLIFF 2.0 standards). -
Segments imported as Confirmed are saved to the project translation memory in Write mode.
-
Standard segmentation is applied. If not selected, one element will be one segment. This may result in multiple sentences per segment. If selected but one element remains one segment, the attribute canResegment="no" may be present in the file. To push the segmentation, change this attribute to "yes". If there is no canResegment="no" attribute, the unit will be segmented.
If the target segment is empty, the text in the source element is segmented. This behavior cannot be changed by enabling/disabling the option or adjusting segmentation rules.
If an imported
unit
hassegment
elements in the original file, it is not segmented further; it is considered as already segmented. This behavior cannot be changed by enabling the option. Segmentation can only occur if theunit
has a singlesegment
element and no ignorable elements. -
XLIFF linebreak and pagebreak tags create new segments. This option will be applied only if Segment XLIFF is also enabled.
-
-
-
2.0 Only
-
1.2 Only
Context must be in either trans unit in elements context-group or context with context-type attributes.
-
2.0 Only
The context must be in the unit element or unit descendants. The base node (context node) for the XPath evaluation is the unit element. The default XPath is: @id.
-
Comma-separated list of character references required in the output file.
Example:
-
Import segment rules
Adding rules changes the default import settings. Rules can be combined or added and can be applied using the available form or manually. Custom XLIFF states are supported. Separating arguments by a comma creates the AND
logical relationship, while a new line creates the OR
logical relationship.
XPath can also be used in rules, but it will be evaluated relative to each trans-unit element (i. e. not the document).
Examples:
-
Import only segments where the
<trans-unit>
element has aresname
attribute of which the value is or containsinfo: .[contains(@resname,'info')]
. -
Import only segments where the
<trans-unit>
element has no suchsegment-metadata
child element where thetm_match
attribute is or contains100.00: .[not(contains(segment-metadata/@tm_match,'100.00'))]
To exclude 100.00 and 101.00% matches from your import, use
or
as follows:.[not(contains(segment-metadata/@tm_match,'100.00') or contains(segment-metadata/@tm_match,'101.00'))]
.
XPath can also be used in rules, e.g. importing segments .[contains(@resname, 'info;yes')]
.
By default , all XLIFF trans-units are imported. If segmentation is performed, <source>
is segmented and <seg-source>
is not. The status of all segments after import is not confirmed nor locked.
Custom import settings
-
Do not import segment when
-
Set segment confirmed when
-
Set segment locked when
Export attributes mapping
Adding rules changes the default import settings. Rules can be combined or added and can be applied using the available form or manually. Custom XLIFF states are supported.
By default, all XLIFF trans-units in the exported target file will look identical to the source excepting that the target will be translated. To change the XLIFF states, segment statuses can be mapped to XLIFF states.
Example:
Custom export settings
Specific target attributes can be mapped based on the following segment statuses:
-
Confirmed and locked
-
Confirmed and not locked
-
Not confirmed and locked
-
Not confirmed and not locked
Maximum target length
When a unit is divided into more segments, all segments will have the same maximum length property. This will be equal to the maximum for the unit.
In this case, the following warning is returned after import:
A unit is split to more segments, the maximum length limit will be checked for each segment separately.
1.2
The attribute maxwidth
can be used to specify maximum target length for translation in these conditions:
-
Maxwidth must be in a trans-unit element (not in a group).
-
Size must be specified in
size-unit="char"
orsize-unit="percent"
. -
There is only one segment in the trans-unit element.
A warning is displayed if there are more segments in the trans-unit element.
2.0
The maximum target length feature is supported only if:
-
The file element contains
slr:profiles
withgeneralProfile="xliff:codepoints"
-
Unit in the file contains the
sizeRestriction
attribute.
The maximum value is then set as the maximum length property of the segment.
Drupal/Wordpress .XLIFF
Set in the project template used with the Drupal plugin.
The Wordpress filter uses the HTML subfilter, so .HTML import settings can be applied. If more customization is required than available in HTML import settings, .XML format should be used.
In case of doubt, Drupal/WordPress XLIFF may be a good choice for any other .XLIFF files as well where the translatable strings are in CDATA and contain HTML tags.