File Import settings

Working with XLIFF 1.2 Files

Introduction

The XLIFF file filter by default imports files with the following extensions:

  • .xlf
  • .xliff

Tag Content Visualized

The tag content of the source XLIFF file can be visualized in the Editor by going to Edit and clicking on Expand Tags.  You can edit the tags by pressing F2.

If selected, data from the <note> element will be displayed in the Context window so that Linguists can view it next to each segment.

Saving Confirmed Segments to a TM

By selecting the option Save confirmed segments to TM on import, all segments that get imported to Memsource as Confirmed will be saved to the project's translation memory in Write mode.

Context Note

Context in XLIFF files has to be in either trans unit in elements context-group or context with context-type attributes.

Example:

<trans-unit id="130">
 <context-group>
  <context context-type="context">Context of the segment</context>
 </context-group>
</trans-unit>

Interpreting Linebreak Tags

The option interpret linebreak/pagebreak tags will cause XLIFF linebreaks and pagebreak tags to create new segments.

Import Segment Rules

Adding rules to this section will change the default import settings. Rules can be combined or added and can be done using the available form or done 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.

Default Settings

By default (if no rules are added), all XLIFF trans-units will get imported into Memsource. Memsource will always segment <source> but not <seg-source> unless the user turns off segmentation completely. (In this case, nothing will get segmented). The status of all segments in Memsource after import will be not confirmed and not locked.

Custom Import Settings

  • Do not import segment when
  • Set segment confirmed when
  • Set segment locked when

Export Attributes Mapping

Adding rules to this section will change the default import settings. Rules can be combined or added and can be done using the available form or done manually. Custom XLIFF states are also supported.

Default Settings

By default (if no rules are added), all XLIFF trans-units in the exported target file will look identical to the source except that the target will be translated. To change the XLIFF states (e.g. from New to Translated in the exported target XLIFF file), Memsource segment statuses can be mapped to XLIFF states.

Custom Export Settings

You can also map to specific target XLIFF attributes based on Memsource segment statuses:

  • Confirmed and locked
  • Confirmed and not locked
  • Not confirmed and locked

Note

If a source XLIFF trans-unit segment is split into two or more segments in Memsource, all of these segments will have the attributes of the first segment once exported into target XLIFF trans-unit.

Maximum Target Length

The attribute maxwidth in XLIFF 1.2 can be used to specify maximum target length for translation, but only under specific conditions:

  • Maxwidth must be in a trans-unit element (not in a group).
  • Size must be specified in size-unit="char" or size-unit="percent".
  • There is only one segment in the trans-unit element (A warning will be displayed if there are more segments in the trans-unit element).