Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note

Diese Funktion steht nur “classic” Vorlagen zur Verfügung. Weitere Informationen finden Sie hierThis function is only available for "classic" templates. You can find more information here.

All language-dependent texts (translations) that can be linked in XML configurations are stored in the Global Translations.

Table of Contents

References

The translations are located in data sets (data tag), which in turn are located in groups (group tag). The content in a data set is linked in a configuration according to the following pattern:
{D/U[GroupName.DataName]}.

The language may depend on:

  • Document language → "D" → {D[GroupName.DataName]}

  • UI language → "U" → {U[GroupName.DataName]}


“translate” prefix

This function is only available in the new templates. You can find more information here.

To access translations, the prefix translate- can be used in the respective configuration.


Example

The globally stored record "Texts.Enclosures" contains different values depending on the language:

Screenshot

Underlying XML

Code Block
languagexml
TranslationMap>
  <group name="Texts">
    <data name="Enclosures">
      <value lcid="07">Anlagen</value>
      <value lcid="2055">Beilagen</value>
      <value lcid="12">Annexes</value>
      <value lcid="09">Enclosures</value>
      <value lcid="16">Allegato</value>
    </data>
    [...]
  </group>
  [...]
</TranslationMap>

The translated "Texts.Enclosures" record can now be linked in all XML configurations of the document functions. For example, in an enclosure script in the Scripts document function:

Code Block
languagexml
<CustomDataNode id="Enclosures">
  <Line>
    <Text>{D[Texts.Enclosures]}:</Text>
  </Line>
  <Line>
    <Element id="DocParam.Enclosures" linePrefix="&#8211;&#009;" />
  </Line>
</CustomDataNode>

{D[Texts.Enclosures]} is now replaced with "Anlagen", "Beilagen", "Enclosures", "Annexes" or "Allegato" respectively, depending on the document language.

Translated texts cannot be inserted directly into templates.
In order for the texts to be used in the template, the references must always be inserted into a script. Example of a script that provides the translated text "Texts.Enclosures":

Code Block
languagexml
<CustomDataNode id="Texts.Enclosures">
  <Text>{D[Texts.Enclosures]}:</Text>
</CustomDataNode>