Export and import of global language constants

Global language constants can be imported and exported from Portal menu / Portal properties / Regional settings / Global texts / Global language constants.

Export

When exporting language constants, you will find the same settings as for exporting texts, with two exceptions:

Export Intrexx standard constants

The Intrexx standard constants will be included in the export.

Write empty strings if no value is available

If texts are missing, e.g. a missing title in French, an empty string is written. This has the effect that the language attribute "French" is created for this title upon import, provided it is not already available for the title in the target. If the setting is not activated, the attribute will not be created in the XML.

Import

Select the import file. The following formats are permitted for the import file: CSV, XLS, XLSX and XML. The remaining settings in this dialog correspond to the settings that were made when the export file was made.

Write empty strings if no value is available

If you import texts, you will also find the setting "Set empty strings for missing values" here. This controls whether missing texts are written to the XML as empty strings during import.

Example: In the import file, no text is defined in French for a label. If the setting is not activated during the import, then the label will also not get an attribute for French in the title element, provided that there was also no attribute before the import. If the setting is activated, the title element will get the attribute for French with an empty string as the value.

Import statistics

If changed or new language constants are imported, corresponding statistics are output after the import.

Click here on the magnifying glass button to display detailed information.

Import details

You can view the import details here.

XML export format for language constants

The XML format for importing and exporting language constants collects every text constant together in the block <texts>. Every constant is defined via an <element>. The constant name is stated as the key, whereas the value of the "type" always needs to be "constant". Every constant is defined via an <element>. Each language variable is written as a <text>element under the <element>. As well as the ISO code, the availability ("ALL", "VELOCITY", "JAVASCRIPT") of the constant is also defined in the "language" parameter. Language texts defined directly in the controls, are identified in the <element> tag with the parameters "type" (object type) and "key" (control GUID).

Parameters

Value

Description

timestamp

YYYYMMTTHHMMSS

Export time stamp

type

application portal

States whether the export comes from an application or a portal

guid

GUID

GUID of the application

refLanguage

ISO language code

Reference language

version

Integer value

Export version

<?xml version="1.0" encoding="UTF-8"?><texts timestamp="20160212155654" guid="798…1F1"
 type="application" version="1" refLanguage="de">    <element key="ADDITIONAL_DISTRIBUTION_LIST" type="constant">        <text language="de" type="VELOCITY">Zusätzlicher Verteiler</text>        <text language="en" type="VELOCITY">Additional Distribution List</text>    </element>    <element type="dropdowncontrol" key="C22…D65">        <text type="title" language="de">Auswahlliste</text>        <text type="title" language="en">Auswahlliste</text>    </element><texts>