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:](Images/png/16272570507__Web.png)
Add localization
Each new language requires a new localization file in the localization folder.
![Localization 2:](Images/png/16272574347__Web.png)
The appropriate combination of language and area must then be selected.
![Localization 3:](Images/png/16272572427__Web.png)
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:](Images/png/16272578187__Web.png)
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:](Images/png/16270007947__Web.png)
The name of the file is generated automatically and is therefore irrelevant.
![Localization 6:](Images/png/16272576267__Web.png)
For each control, select any existing localization in order to transfer the language entries.
![Localization 7:](Images/png/16272568587__Web.png)
After confirming the selection, the localization files are available in the project.
![Localization 8:](Images/png/16272580107__Web.png)
Finally, the language entries must be replaced in the new localization.
![Localization 9:](Images/png/16272582027__Web.png)
The available localizations can be shown and hidden via the right-click menu of a column.
![Localization 10:](Images/png/16272583947__Web.png)
Override localization
The localization of the control must first be imported into the folder for localizations.
![Localization 11:](Images/png/16272560907__Web.png)
The name of the file is generated automatically and is therefore irrelevant.
![Localization 12:](Images/png/16272562827__Web.png)
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:](Images/png/16272564747__Web.png)
After confirming the selection, the localization files are available in the project.
![Localization 14:](Images/png/16272566667__Web.png)