Internationalization/translations
The texts of the events ("DisplayText") for display in HMIs, for example, can be internationalized.
The "Translations" section in the TMC editor is provided for this. The section describes a table in whose rows the keys are assigned to the texts in different languages.
Keys to be translated
The keys are automatically determined from the texts ("Display Text") of the events and event classes. It is possible to describe individually whether the keys are to be adopted into the translation:
Languages to be included
Languages can be selected and added. If a language is requested at runtime for which no text is stored, the English text will be used.
Translations
The translations can be placed in the table below "Translations".
Alternatively the languages can be edited separately on the respective sub-nodes.
Additional functions
Further functions are available for the internationalization:
The following functions are available:
- Add a language: Adds a language, as described above.
- Remove selected translations: Removes a key with the translations.
- Import Translation Keys: Imports the key that is used from the event classes as described above.
- Copy: Copies the translation.
- Paste: Pastes a translation.
- Show Types: Displays the use of the selected key.
- Delete unused: Deletes the key that is not used in any EventClass from the table.
- Import: Imports the translations from an XML or CSV file.
- Export: Exports the translations to an XML or CSV file.
The import and export functions relate to an XML/CSV format, which can be investigated by way of an example through an export.
Translations outside of TwinCAT (XML)
The translation information is stored in its own area of the configuration files, which can also be edited outside of the TwinCAT XAE.