.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../Includes.rst.txt .. _xmlExchangeFormat: XML exchange format =================== The XML format used by the l10nmgr is a simple XML format that can be used with all state-of-the-art localisation and translation tools. The Localization Manager ships with the required settings files that specify translatable and non-translatable elements. Currently settings files are available for the following tools: across, DéjàVu, SDL Trados and SDL Passolo. Settings files for other tools can easily be set up. The file format for the export & import of translatable data of a TYPO3 website is a localization-friendly XML format. The default encoding of XML files is UTF-8. Context information One important feature of the XML format is that the translatable contents ( elements) are grouped according to the context of the page on which they occur (). To get a preview of the source web page, the URL can be reassembled by combining the with the ID attribute of the element and the ID of the source language (): `http://\/index.php?id=pageGrp:id&L=\ /index.php?id=pageGrp:id&L=\>`_ Structure --------- +----------------------+---------------------------------------------------------------+ | Element name | Semantics | +======================+===============================================================+ | \ | Root element | +----------------------+---------------------------------------------------------------+ | \ | Header with meta information | +----------------------+---------------------------------------------------------------+ | \ | ID of Localization Manager configuration used for the export. | +----------------------+---------------------------------------------------------------+ | \ | ID of target language (equal to IDs of website languages) | +----------------------+---------------------------------------------------------------+ | \ | ISO-639-1 language code for source language | +----------------------+---------------------------------------------------------------+ | \ | ISO-639-1 language code for target language | +----------------------+---------------------------------------------------------------+ | \ | Base URL of TYPO3-Website to be translated | +----------------------+---------------------------------------------------------------+ | \ | ID of workspace from which has been exported | +----------------------+---------------------------------------------------------------+ | \ | Number of exported data sets | +----------------------+---------------------------------------------------------------+ | \ | Word count of source text | +----------------------+---------------------------------------------------------------+ | \ | Internal messages | +----------------------+---------------------------------------------------------------+ | \ | Elements skipped during export | +----------------------+---------------------------------------------------------------+ | \ | Error messages | +----------------------+---------------------------------------------------------------+ | \ | Key of skipped element | +----------------------+---------------------------------------------------------------+ | \ | Version number of XML format | +----------------------+---------------------------------------------------------------+ | \ | Grouping element that embraces all translatable elements of a | | | page. The id- attribute indicates the page ID. The sourceUrl | | | attribute indicates the url of the source language webpage. | +----------------------+---------------------------------------------------------------+ | \ | Translatable contents. Used attributes: table = database | | | table from which contents has been exported elementUid = UID | | | of localizable data set key = Trigger for localization | | | command. Syntax: table:NEW/ t3_sysLang/elementUid:fieldname | | | (Initial localization) table:elementUid:fieldname (Update | | | localization, elementUid is ID of data set to be updated) | +----------------------+---------------------------------------------------------------+ | | can further contain all kind HTML elements. Number and | | | type of elements can vary for every TYPO3 installation. | +----------------------+---------------------------------------------------------------+