Did you find this page useful? Give us feedback.
Did you find the information
on this page useful?

Yes
Somewhat
No
  Tell us more about your remark
Missing information
Incorrect information
Misleading information
I have a question
Other
  Please write your remark in the box below

  Type the letters
simple PHP captcha
 

Use this dialog to control how memoQ imports multilingual XML (eXtensible Markup Language) files which are well-formed. XML is widely used in the localization and other translation related tasks where the content is created and stored by software tools.

Setting up a multilingual translation project and importing all files can become cumbersome when you have to repeat all the file import and setup operation for all your target languages. Importing a multilingual XML file in your project in one go, can be much easier. You can import content to translate into German and leave other target languages in the XML file untouched (getting not imported). Specify content in other languages by individual XPath expressions. See also: XML import rule examples.

Invoking

Set up your project with several target languages. In the Translations pane of Project home, choose Import > Import with options button on the Documents ribbon tab, and in the Open dialog, locate and select a multilingual XML file. Then, click the Change filter and configuration command link. You can also get to this dialog if you go to the Filter configurations pane in the Resource console, select a multilingual XML filter, and click the Edit link below the list.

You need to assign each language code in the XML file to a target language in your project. If the XML contains languages which are not in your project, then these languages are not imported.

Options

The Multilingual XML filter has similar tabs than the XML filter.

Encoding and references files tab:

Add file: By clicking this button, you can browse to the location of your reference files and add them to the configuration. If you select an encoding from the list on the left, you can verify that the file displays correctly. The encoding you select here will also be used as a default encoding later on, whenever you import a document that does not contain an encoding declaration.
Remove file: Click this button to remove a previously added reference file.
DTD/Schema text box: if a document type definition (DTD) or an XML schema definition (XSD) file is available for the XML files you are importing, you can specify it in this text box. This allows you to quickly feed the complete list of possible tags into the format configuration. The DTD or the XSD can also be associated with the new format, allowing memoQ to automatically select the format when importing documents that contain a reference to the same DTD or XSD file. To locate and select the DTD or XSD file, click the Browse button next to the text box.

 

Import rules tab:

This tab lists the import rules specified in this filter.

Click the Edit import rules button to open the XML import rules dialog:

Click here to learn how to configure the XML import rules.

 

Other tags and attributes tab:

When first opening this tab for a new format, memoQ will display the screen below, but without any information filled in.

Tags section (top section):

Handled tags: This list indicates all the tags you added to the XML format configuration with specified properties.

Note: The type and properties of handled tags are indicated by abbreviations in the Info column of the Handled tags list. Tag types are: Str stands for structural; In for inline; NT for non-translated; and Req for required. Whitespace handling options: Inh stands for inherit, Pres for preserve, and Norm for normalize. Context handling and commenting options: Ctxt signifies that content is imported as context ID, and Com signifies that content is imported as comment. All of these types and options are explained below.

Inline: Select this option to specify that the tag selected in the Handled tags list is inline. Inline tags represent markup that is imported inside segments, and is displayed as inline tags. (For more information on inline tags, refer to Formatting Tags. In other tools, inline tags are also referred to as internal.) If this option is not enabled, memoQ will handle the tag as structural. Structural tags mark elements that are blocks of content for translation. Being delimiters, structural tags never appear within text for translation after import. In other tools, structural tags are also referred to as external.

Note: In our example, it is recommended to specify the ref and img tags as inline (because they appear inside sentences), and all the others as structural.

Not translated: Select this option to specify that the tag selected in the Handled tags list represents non-translatable text. These portions of text will not be imported for translation.

Note: If you specify that an element is non-translated, the contents of its child elements will not be imported either. Therefore, make sure you do not set elements like Body or Main to be non-translated.

Note: If an inline tag is defined as non-translated, all of its content and children will be imported into a single inline tag.

Required: Check this option to specify that the tag selected in the Handled tags list or entered into the field under the Handled tags list is required. Required tags are special inline tags that must be kept in the translation if present in the source segment. memoQ enforces this condition and displays an error sign if a required inline tag is not copied to the target side.
Highlight: Check this option to import comments.  Since memoQ 2013, memoQ has the option to add an unlimited number of comments to a segment, source or target cell. The XML filter takes advantage of this opportunity: you can configure several comments with their associated comment levels (information, warning, error, other). Choose from the Highlight drop-down list. The Highlight option will put a highlight on the content within the selected tag. No comment is associated with the imported comments from the multilingual XML file.
Whitespace handling: Use this option to specify how whitespace will be handled in the text content of the element. Inherit means that the element will receive the same whitespace handling setting as the parent element. The root element receives the default setting specified in the General tab. Preserve means that all whitespace will be retained and imported into the translation document. Normalize means that sequences of whitespace characters will be replaced by a single space character.
: Click this button to remove the selected tag from the Handled tags list.
: Click this button to add the tag entered into the text box to the Handled tags list.
Clear list: Removes every tag from the Handled tags list, along with and all their settings and attributes.
Populate: Click this button to extract all tags with all of their attributes that occur in any of the reference files or the specified DTD. After clicking the Populate button, memoQ will fill the list with the tags it finds, and attempts to automatically determine the type of the tags (inline or structural).

Note: If a tag is not present in the format configuration, memoQ uses the following default settings when finding the tag during import: the tag will be imported as structural and translatable, will inherit its whitespace settings from the parent element, and its content will not be imported as a comment or a context identifier.

Attributes section (middle section):

By clicking an item in the Handled tags list, the controls below are updated to show the attributes added for those tags. Attributes can be entered manually or filled in using the Populate button.

Tag attributes: This list indicates all the attributes assigned to a tag you added to the XML format configuration with specified properties.

Note: The properties of handled attributes are indicated by abbreviations in the Info column of the Tag attributes list. Tr stands for translatable; Req for required; and F for filtered. NX and NY signify the conditional import options, CxC and CxS stand for the context identifier options, while CmC and CmS show the commenting options.

Important: memoQ handles the xml:lang attribute differently from others. You cannot control how the xml:lang attribute is processed. Instead, memoQ processes them automatically. If a structural tag has the xml:lang attribute in or around an imported range, its value is replaced with the 2-letter ISO-code of the document’s target language when memoQ exports the document. This happens regardless of the actual language specified in the attribute. If an inline tag has the xml:lang attribute, it is not imported unless someone manually adds it. You can add the xml:lang attribute to inline tags, but you cannot specify any options there. In addition, memoQ replaces its value with the target language when the document is exported.

The options are:

Translatable: Check this check box to specify the attribute selected in the Tag attributes list or entered into the field under the Tag attributes list as translatable.
Required: Check this check box to specify the attribute selected in the Tag attributes list or entered into the field under the Tag attributes list as one that must be present in any tag inserted to the translation. A required attribute is not necessarily translatable: this property is used as a quality checking feature of memoQ to ensure the well-formedness of the translation.
Filtered: Check this check box to specify the attribute selected in the Tag attributes list as one that should be hidden within the tags when switching to the Show filtered inline tags option.

Note: memoQ also uses filtered attributes for INX, MIF, Transit and TTX documents. Filtering makes it possible to display only those attributes that are useful for the translator and to avoid disturbingly long tags.

Non-translation: By clicking this button you can specify conditions that make the selected tag non-translatable based on the values of the selected attribute. After clicking this button, the Non-translation settings for attribute dialog appears with a list of options and their explanation.
Context: By clicking this button you can specify that the value of the selected attribute is imported as context information for the children or the siblings of the selected tag. After clicking this button, the Context settings for attribute dialog appears with a list of options and their explanation.

Note: In our example, the id attribute of the par element could be used as a context identifier.

Comment: By clicking this button you can specify that the value of the selected attribute is imported as comments for the children or the siblings of the selected tag. After clicking this button, the Comment settings for attribute dialog appears with a list of options and their explanation.
: Click this button to remove the selected attribute from the Tag attributes list.
: Click this button to add the attribute entered into the text box on the left to the Tag attributes list.

Note: If an attribute is not present in the format configuration, memoQ treats in as non-translatable, not required and not filtered. Such an attribute will not be used for non-translation conditions, or in context and comment processing.

Occurrences section (lower section):

This section at the lower part of the dialog provides further assistance to the creator of the format by showing the occurrences of the tag selected in the Handled tags list, and its attribute selected in the Tag attributes list, in the reference documents. The tags are highlighted in red, and their attributes in green.

File: Use this drop-down list to select any of the reference files for displaying the occurrences therein.
Instance: Use this list to select any of the occurrences in the selected reference file to be displayed, by clicking on the appropriate number.

 

Entities tab:

Here you can specify how memoQ should handle entities.

Entity groups: In this list, you can select standard groups of entities which should be converted during import. XML Predefined entities ('&', '<', '>', '"' and ''') are always handled.
Custom entities: In this list, you can specify any non-standard entities that are specific to your document type. Custom entities can be handled in memoQ translation documents as inline tags, memoQ formatting tags or “normal” Unicode characters. You can select the desired choosing one of the three radio buttons under Entity behavior. A new entity can be added to the list by entering it into the Entity box. The settings of an existing entity can be modified by selecting the entity in the Custom entities list. In the sample document, there is one custom entity, '&copyright;', which should be converted to '©' for translation.
Add/change: Click this button to add a custom entity to the Custom entities list view, or to modify the custom entity selected in the Custom entities list view with the settings specified above.

Note: In the first field under the Custom entities list, you can enter the entity appearing in your document between & and ;. Using the radio buttons, you can select whether this entity should be treated as a character or as a memoQ tag. If the entity should appear on the translation grid as a character, enter its Unicode code into the second field or enter the character into the third field.

Remove: Click this button to remove the selected custom entity from the Custom entities list.
Populate from files: Click this button to extract all custom entities that occur in any of the reference files. After clicking the Populate from files button, all custom entities will appear in the Custom entities list.

 

General tab:

In the Content section, you can specify how memoQ should import content.

Normalize whitespace by default: If enabled, memoQ will convert sequences of tab, space or newline characters into a single space character. In addition, sequences of whitespace at the beginning and end of elements will be trimmed. Normalization is recommended when the XML document uses whitespace characters for readability only. This setting adjusts the default behavior for the XML format, but normalization can also be adjusted on the tag level.
Observe xml:space attribute in file: XML documents can contain attributes that prescribe whether or not whitespace should be normalized in a specific element. If this option is enabled, memoQ will follow such instructions in the document. If it is disabled, memoQ will treat whitespace according to its global and tag level settings.
Break segments at newlines if whitespace is preserved: Check this check box if you want memoQ to treat newline characters as segment boundaries. Text in XML files can contain newline characters if you choose to preserve whitespace. memoQ preserves whitespace when the Normalize whitespace by default check box is turned off. In this case, newline characters supposedly have a meaning in the text, and most of the time each line should be translated as a separate segment. The general advice is, turn on Break segments at newlines... if you choose to turn off Normalize whitespace by default.
Import processing instructions as inline tags: Check this check box to import processing instructions as inline tags. Processing instructions like <$ are now represented with uninterpreted tags. This check box is enabled by default. XML processing instructions were previously handled as {} tags, now they have a special tag: mq:pi.