Localization

Localization in the TcHmiBa controls is managed by the TwinCAT HMI localization system.

Localization in the project

A TcHmi project created with the TcHmiBa project template already contains localizations for German and English. They can be modified, supplemented and extended to include other languages.

Localization 1:

Add localization

Each new language requires a new localization file in the localization folder.

Localization 2:

The appropriate combination of language and area must then be selected.

Localization 3:

A newly created localization file is automatically opened and initially appears empty.

Existing language entries from other languages can be shown by activating the Show missing keys option.

Localization 4:

Localization of controls

Localizations of controls from NuGet packages can be overridden and supplemented with additional languages.

Add localization

Each new language requires a new localization file in the localization folder.

Localization 5:

The name of the file is generated automatically and is therefore irrelevant.

Localization 6:

For each control, select any existing localization in order to transfer the language entries.

Localization 7:

After confirming the selection, the localization files are available in the project.

Localization 8:

Finally, the language entries must be replaced in the new localization.

Localization 9:

The available localizations can be shown and hidden via the right-click menu of a column.

Localization 10:

Override localization

The localization of the control must first be imported into the folder for localizations.

Localization 11:

The name of the file is generated automatically and is therefore irrelevant.

Localization 12:

The localizations to be overridden must then be selected.

MgmtCtrl contains all localizations of the TcHmiBaFramework package and TcHmiBaControls package.

Localization contains all localizations from the TcHmiBaIcons package.

Localization 13:

After confirming the selection, the localization files are available in the project.

Localization 14:

Export/import localization

Excel

The localization file menu allows you to export localizations. The exported localizations can be edited in Excel and then re-imported.

Localization 15: