Localizations

NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Localizations

Available: since version 12.6.0

The NuGet package Beckhoff.TwinCAT.HMI.Plastic.Localizations can be installed in the TwinCAT HMI project via the package management system NuGet.

It contains two controls, each with an English (en-US) and a German (de-DE) language file with language symbols that may be relevant for plastic user interfaces:

To use the language symbols from the package, the following text must be inserted into the property of a control (e.g. Text):

“%l%Control::TcHmi.Controls.Plastic.Tc3_PlasticLocalizations::Language%/l%”

In this sample, the string references the language key "Language". The English translation is "Language" and the German "Sprache".

To display the list of all available language symbols or to change the translations of the languages English and German or to add further languages, the language files can be imported in the TwinCAT HMI project.

Import existing languages:

  1. Right-click on the Localization folder in the TwinCAT HMI project and add a new item.
  2. Select the Import Localization option in the window that opens and then click the Add button.
  3. Open the Control tab in the TwinCAT HMI Wizard window, select either the control with the name Tc3_PlasticLocalizations or Tc3_PlasticParameterInfo via the checkbox and confirm with the OK button. (If desired, only one of the two available languages can be selected)
  4. The selected language files appear in the folder Localizations and can be edited using the localization editor.

Add new languages based on existing lists:

  1. Right-click on the Localization folder in the TwinCAT HMI project and add a new item.
  2. Select the Localization option in the window that opens and then click the Add button.
  3. In the TwinCAT HMI Wizard window, select the desired new language using the combo box at Locale:.
  4. Then open the Control tab and then either the control with the name Tc3_PlasticLocalizations or Tc3_PlasticParameterInfo.
  5. Now select the desired language (German: de or English: en) via the checkbox with which the new file is to be initialized and confirm by clicking on the OK button.
  6. The newly created language file appears in the Localization folder and can be edited using the localization editor to enter the translation in the corresponding language.