![]() |
ALPHA-VISION® Data Interfaces: Languages(XmlMls, bidirectional) |
XmlMls generates and reimports csv files, which can be accessed by using Excel.
The naming convention of the csv files is according to the following:
'XmlMls_' + key of source language + '_TranslatedTo_' + key of target language + '.csv'
Each of the files has two rows, one for the source and one for the target lanugage. The row header contains the names of the source language and the corresponding target-language. Consequently, the first row holds all values of the source and the second row the values of the target language. In this second row, translators can work to create or update existing entries.
To export the language relevant date, first chose the source language in the language
selection combo box. Then start the export by clicking on the XmlMls export icon
in the toolbar.
From all ALPHA-VISION® xml files that are located beneath the project directory, and for all XML-elements, that do have a text attribute with a key which matches the key of the selected language, an entry is written in each of the target-language .csv-files.
To import, click on the XmlMls import icon
in the toolbar, then chose the csv-file you want to import from the file dialog.
The source and the target language are set by the keys given in the file name and all ALPHA-VISION® xml language data beneath the project directory is updated with the data from the csv-file.
The export is done by applying the file language-extract.xsl to all ALPHA-VISION® xml data. Likewise, the reimport language-import.xsl uses the exported .csv-data to update all ALPHA-VISION® xml language data. Both .xsl-files use the same secondary .xsl-file ParamFor_LangData.xsl where all necessary parameters for the export and reimport are given.
A more detailed description of parameters and the strategy can be found as xml-comment in ParamFor_LangData.xsl and examples for the command line export and reimport are given in lang.bat.