RWS Community
RWS Community
  • Site

Trados Studio

Trados Enterprise

Trados Team

Trados GroupShare

Trados Business Manager

Passolo

MultiTerm

RWS AppStore

Connectors

Beta Groups

Managed Translation

MultiTrans

TMS

Trados Enterprise

WorldServer

Language Weaver

Language Weaver Edge

Language Weaver Connectors

Language Weaver in Trados Studio

 

 

Tridion Docs

Tridion Sites

LiveContent S1000D

XPP

Language Developers

Tridion Docs Developers

Community Help

RWS User Experience

AURORA

Internal Trados Ideas

Mercury

RWS Community Internal Group

XPP Cloud

Language Combinations by Language Services

RWS Training & Certification

Style Guides

RWS Campus

Trados Approved Trainers

ETUG (European Trados User Group) Public Information

Nordic Tridion Docs User Group

Tridion West Coast User Group

Trados Studio Ideas

Trados GroupShare Ideas

Trados Team Ideas

Trados Team Terminology Ideas

Trados Enterprise Ideas

Trados Business Manager Ideas

MultiTerm Ideas

Passolo Ideas

RWS Appstore Ideas

Tridion Docs Ideas

Tridion Sites Ideas

Language Weaver Ideas

Language Weaver Edge Ideas

Managed Translation - Enterprise Ideas

TMS Ideas

WorldServer Ideas

Trados Enterprise Ideas

LiveContent S1000D Ideas

Contenta S1000D

XPP Ideas

Events & Webinars

RWS Training & Certification

To RWS Support

  • Search
  • Translate

    Detecting language please wait for.......


    Powered by
  • User
  • Site
  • Search
  • User
  • Product Groups
  • Trados Portfolio
  • RWS AppStore
  • More
  • Cancel
RWS AppStore

RWS AppStore > Wiki

Multilingual XML FileType
  • Home
  • Forums
  • Wiki
  • More
  • Cancel
  • New
Show Translation Options

Detecting language please wait for.......


Powered by
RWS AppStore requires membership for participation - click to join
  • -RWS AppStore
    • +AdaptiveMT Trainer
    • +Amazon Translate MT provider
    • +Antidote Verifier
    • +Apply Studio Project Template
    • +ApplyTM template
    • +AppNotifications
    • +AutoHotKey Manager (AHK)
    • +CleanUp Tasks
    • +Community Advanced Display Filter
    • +DeepL Translation Provider
    • +DSI Viewer
    • +Excel Terminology Provider / TermExcelerator
    • +Excel4GroupShare
    • +Trados Studio – Export Analysis Reports
    • +Export To Excel
    • +Fail Safe Task
    • +Google API Validator
    • GroupShare Kit
    • +GroupShare Version Fetch - Authentication options
    • +Hunspell Dictionary Manager
    • +IATE Real-Time Terminology
    • +IRIS PDF OCR Support for Studio
    • +Lingotek TMS plugin for Trados Studio
    • +MEMSOURCE CloudTM Provider
    • +MT Comparison
    • +MT Enhanced Plugin for Trados Studio
    • +MXLIFF File Type Support
    • +PA Admin
    • +Post-Edit Compare
    • +projectTermExtract
    • +Qualitivity
    • +Rapid Add Term
    • +RecordSource TU
    • +Reports Viewer Plus
    • +Trados Data Protection Suite
    • +Trados Freshstart
    • +Trados LegIt!
    • +Language Weaver
    • +Language Weaver Edge
    • SDL MultiTerm Extract
    • +MultiTrans Plug-in for Trados Studio
    • +Trados Studio InQuote
    • +Trados T-Window for Clipboard
    • +Trados TMBackup
    • +Trados Studio Word Cloud
    • +Trados TTS
    • +SDLTM Import Plus
    • +SDLXLIFF Convertor for MS Office
    • +SDLXLIFF Split / Merge
    • +SDLXLIFF to Legacy Converter
    • +SDLXLIFF Toolkit
    • +Signoff Verify Settings
    • +Star Transit (TransitPackage Handler)
    • +Studio Migration Utility
    • +Studio Subtitling
    • +studioViews
    • +Stylesheet Verifier
    • +Target Renamer
    • +Trados Copy Tags
    • +Target Word Count
    • +TM Lifting (ReIndex Translation Memories)
    • +TM Optimizer
    • +Trados Analyse
    • +Trados Batch Anonymizer
    • +Trados InSource!
    • +Trados Number Verifier
    • +Trados Transcreate
    • +Wordlight
    • +WorldServer Compatibility Pack for Trados Studio
    • +XLIFF Manager for SDL Trados Studio
    • +XML Reader
    • +#YourProductivity
    • +File type definition for TMX
    • +File Type Definition for Wordfast TXML
    • +Google Cloud Translation Provider
    • +Jobs
    • +Microsoft Translator Provider
    • +MSWord Grammar Checker
    • +Multilingual Excel Filetype
    • -Multilingual XML FileType
      • Archived Versions: Multilingual XML FileType
      • Changelog: Multilingual XML Filetype
    • +OpenX Hash Generator
    • +PDF Assistant for Trados
    • +RWS Community Inside
    • +SDLTM Repair
    • +SDLXLIFF Compare
    • +Segment Status Switcher
    • +Studio Time Tracker
    • +TermInjector
    • +TMX Translation Provider
    • +Trados 2007 Translation Memory Plug-in
    • +Trados Compatibility and Migration Power Pack
    • +Trados QuickInfo
    • +Trados Translation Memory Management Utility
    • +TuToTm
    • +Variables Manager for Trados Studio

Multilingual XML FileType

Table of Contents

  • Introduction
  • Installation
  • Settings
    • Multilingual XML
    • Language Mapping
    • Embedded Content
    • Placeholders
    • Entities
    • QuickInsert
  • Using the Multilingual Filetype
    • Creating a project
    • Batch Tasks

Introduction

The Multilingual XML Filetype is a new filetype available for Trados Studio SR2 and later.  The basic usecases for this filetype are:

  • create bilingual or multilingual projects from an XML file containing at least two languages
  • handle large CDATA dumps in XLIFF files correctly
  • handling well formed, but invalid XLIFF files that Trados Studio will not handle out of the box
  • handle bilingual or multilingual XML files without the need to copy the source into the target element and translate the target element only.
  • handle partially translated bilingual or multilingual XML files

The filetype was also presented at the Autumn 2021 Elevate conference:

Play this video

Installation

The filetype can be installed through the AppStore integration in Trados Studio (image below), or by downloading the sdlplugin file from the website and double clicking it to invoke the plugin manager. 

Once installed you should find the new filetype installed here:

If you don't see the filetype in your options make sure you have enabled it here:

You will also find two new batch tasks:

These will be explained below.

Settings

Multilingual XML

  1. the only option available here is to specify the file dialog wildcard expression if needed.  In this example you can see *.tmx has been added.  This would allow you to use this filetype to translate a TMX file. The only requirement is that the type of file you are opening is a well-formed XML file.

Language Mapping

  1. here you specify the location of the languages root element.  This is done by using an XPath expression.  In this example the TMX file looks like this:



    The XPath expression to the languages root element would be: 

    /tmx/body/tu

    This is because the languages are defined within the tuv element for each tu element.

  2. each language in your file can be added to this section by clicking on the Add button, defining the Language and specifying the XPath query that locates the actual translatable content:



    In this example the translatable content is actually in the seg element, but the language defined in each case is controlled by an attribute in the tuv element.  So the XPath expression needs to specifically point to where each language will be found:

    tuv[@xml:lang='EN']/seg

    The screenshot above shows multiple languages because the file is a multilingual TMX and this filetype can support the creation of a multilingual project from this single TMX file.

    A simpler example could be something like a basic bilingual XML file:



    Here the settings would be like this:



    The Language Root XPath would be:

    /sitecore/item

    The location would be the language element used in the file:

    en and de respectively.

It's very important to make sure that the paths are correct.  The main reason for the filetype not being associated with the file opened for translation is failing to accurately specify the XPath locations.  If you have any questions on how to do this for your filetype the recommendation is to ask for help in the appropriate forum

Regex and XPath

XML files come in all shapes and sizes so some knowledge of how to use XPath is essential.  If you are completely new to XPath you may also find these resources useful:

  • XPath tutorial in W3Schools - https://www.w3schools.com/xml/xpath_intro.asp
  • XML in a nutshell, chapter 9 XPath - https://docstore.mik.ua/orelly/xml/xmlnut/ch09_01.htm
  • More regex? No, it's time for something completely different - https://multifarious.filkin.com/2013/07/30/xpath/
  • X Files - ATA 56 - https://multifarious.filkin.com/2015/11/07/x-files-ata56/

The last two at least relate to using Trados Studio.

Adding additional languages

A last point on this section.  If you wish to add a new language into the file that wasn't present in the source then this is also possible.  Just add the new language to your language settings for the project and then create the appropriate rule in the language mappings.  You can now translate this additional language and when you save your Multilingual Translations via the batch task you will find the new language has been added to the file based on the XPath expression you used to map this additional language.

Embedded Content

This section is the same as for any embedded content processing in Trados Studio.  An important point is that you do not have this ability to use another filetype (html for example) as an embedded content processor in the XLIFF filetypes supported by Trados Studio.  So this is a big advantage, especially when handling XLIFF files that make heavy use of large CDATA sections in single translation units.

Placeholders

This section supports the ability to "tag" text as a placeholder in Trados Studio irrespective of whether you are also using an embedded content processor or not.  This is an extremely useful feature because all other filetypes in Trados Studio that offer embedded content processing are either one or the other, so regex rules for everything OR use another fietype like html for the embedded content processing.

The filetype comes with four predefined rules that you can use if appropriate, or remove and just create your own rules.  The process is simple, just click on Add:

Then write your regular expression, define the segmentation hint, and if you wish you can add a description.  It's worth adding a description because you can also import/export the rules you have created to make it easier to share with others, or even maintain a library for yourself that you can simply import and then remove the ones you don't need as a starting point when setting up your filetype for a specific project.  The different options available to you are defined across the toolbar:

Entities

This section provides entity support that works the same way as it does for any filetype in Trados Studio that supports them.  See the producthelp for more details.

QuickInsert

This section provides support for QuickInserts that works the same way as it does for any filetype in Trados Studio that supports them.  See the producthelp for more details.

Using the Multilingual Filetype

Creating a project

  1. the first thing to note is that your project template/settings must contain all the languages you have specified in your filetype settings
  2. the second thing to note is that if your filetype settings are incorrect in any way then the Multilingual XML Filetype will not be recognised as it has in the screenshot above

When you add a multilingual XML file, properly set up, your multilingual project will be created for all the language pairs specified allowing you to manage the project in the usual way.

Batch Tasks

In the Installation section above it was mentioned that two new batch tasks are added to Trados Studio:

  •  Import Multilingual Translations
  • Generate Multilingual Translations

Import Multilingual Translations

This batch task will import all translations that may be present in the source file.  If you have the Professional version of Trados Studio you can create custom tasks that include this task as part of the project preparation.  In the screenshot below you can see the task is a custom task that only does three things - converts to translatable format, copies to target languages and imports the multilingual translations:

If you are using the Freelance version of Trados Studio then you will need to run this task after the project has been created.

The options allow you to do four things:

  1. overwrite existing translations. So if you are importing a file translated elsewhere and you need to use that as the approved translations you can import it and replace anything in your project with the target translations of your approved file.
  2. define the origin system.  This will add whatever information to write in here into the SDLXLIFF file.  Maybe useful for filtering on the file at some point or for identifying where the imported translations came from for example.
  3. set the segment status. This just allows you to define what status the imported translations should have when opened in the Trados Studio editor.
  4. exclude segments. This will prevent segments with the selected criteria in Trados Studio from being updated with the contents of the imported file.

Generate Multilingual Translations

This batch task will generate the target multilingual file when you have completed the project (or earlier if you wish).  It is different to the out of the box generate target translations, which will also work, because it will take the target translations from each of the files you have translated in a multilingual project and merge them back into single files again.  This will be very beneficial because the out of the box task will create separate files for each language pair being translated and you would then have to merge them all into single files manually afterwards.

  • Share
  • History
  • More
  • Cancel
Related
Recommended
  • Our Terms of Use
  • Copyright
  • Privacy
  • Security
  • Anti-slavery Statement
  • Cookie Notice
  • YouTube