LanguageSelector control element

There is a special control element for application-wide language switching - the LanguageSelector. It is already integrated in the "SettingsDialogue.html" in all templates. You can find the control element under DesignWdialogsWsettings.

The control reads all languages available in the project and displays them in a drop-down list at runtime.

In the background, the respective entry is linked to a language via the LCID. The LCID (Locale Identifier) is a four-digit numerical value that is permanently assigned to a language. The LCID for German (Germany), for example, is 1031.

If you do not want to make all languages available for selection in your application, you can use the "Language filter" property to specify which entries should be displayed. To do this, enter the official IETF language abbreviation in the text field. For example, if you only want to display the languages German and American English, enter the abbreviations "de-DE,en-US" separated by commas in the text field.

List of all language abbreviations that are available by default in (Undefined variable: docInfo_DE.Produktname):

  • German: de-DE

  • American English: en-US

  • British English: en-GB

  • Spanish: es-ES

  • French: fr-FR

  • Italian: it-IT

  • Dutch: nl-NL

  • Polish: pl-PL

  • Russian: ru-RU

  • Swedish: sv-SE

  • Turkish: tr-TR

  • Chinese: zh-CN

  • Czech: cs-CZ

Start the project to test the application.

  • When you start your application, the text "Welcome" appears in your label. If you switch the language via the settings dialogue, the text "Welcome" will appear instead.

  • Close the application.