Create language switch

In the language switching system module, you will find a number of tasks that you need to complete in order to make your application available in several languages.

These tasks include:

Organise text groups

Below the User texts node, you can freely organise the localizable texts of your project in text groups. Recommendation:

Text groups can be organised hierarchically, i.e. You can create a subgroup below a text group. For example, you can encapsulate a text list in its own subgroup. A nesting depth of up to eight hierarchy levels is permitted in the User texts node.

In addition to the component-related text groups, you can also create a text group that contains the texts "OK", "Cancel", "System is busy", etc. that are used repeatedly.

Edit texts

The text fields of a localizable text contain limitations and additional functions:

Add languages

To add a project language, double-click on the project explorer node Language switchingWConfigurationWLanguages to open the corresponding table editor and select the New entry in the context menu. Select the desired language from the list of available languages and confirm with OK. Adding a new language causes a corresponding column to be added to the tables for the localizable texts.

A language contains a numerical identifier in brackets, the so-called locale identifier (LCID). This identifier is required at runtime in the language switching calls. For example, if you want to switch to English (United States), you must use the value 1033 as a parameter in the corresponding calls.

Exporting and importing texts for translation

After installation, you will find the "VisiWin Translation Manager" entry in the Windows start menu. This tool is used to export texts to be translated to Microsoft Excel and to re-import the texts after translation. You can find more information on this programme in the Translation Manager section.

Set developer language

One of the languages contained in the project can be selected as the developer language. The selection is made via the project explorer node Project configurationWGlobal in the "Language" tab.

Some definitions, such as alarms, contain references to localizable texts as parameters. The texts for the developer language are specified in the corresponding editors. Therefore, if you want to specify these texts in English rather than German in the alarm editor during project planning, you must change the developer language accordingly.