Changing language codes in XLIFF/TS files via Filer Template

Changing language codes in XLIFF/TS files via Filer Template

Introduction

If you are translating XLIFF format in XTM Cloud, you might make use of an external software for post-processing of XTM-generated target files. In all likelihood, this software uses different language codes format than that used in XTM Cloud. For this reason, there is a need to constantly edit language codes in the target files before uploading them back to your software.


Problem

When it comes to XLIFF or TS files, attributes such as source-language or target-language cannot be extracted for translation in XTM Workbench. This is because both of these files are bilingual, meaning the aforementioned attributes will change automatically based on the languages used in the project.

For example, if your source language is French (France) and your target is German (Germany), the target files will have their source-target attributes changed to fr_FR and de_DE respectively.


Solution

While it is not possible to extract this attribute directly into XTM Workbench, the Support team can create a configuration / filter template that will automatically replace the language codes XTM Cloud uses with those required by your software, during the process of generating target files.

For example, zh_CN (Simplified Chinese) can be automatically changed into Zh_Hans.

IMPORTANT!

Note that this configuration is currently only available for XLIFF files, meaning the language codes in your TS files would still need to be manually adjusted.

In order to proceed, the Support team would need you to provide the language codes used in the said software, so they can map them correctly.