Localized Strings

From RealWorld Wiki

Jump to: navigation, search

RealWorld Designer and derived applications have very few items hardcoded and instead rely heavily on configuration. The configuration includes among others also toolbar and menu names and descriptions. Since the applications supports multiple languages, there must be a mechanism to specify text in multiple languages at once.

Configurable items visible on user interface can use:

  • simple strings
  • multi-language strings - they consist of a language code in square brackets followed by string in that language; another language may follow

[edit] Multi-language format example

[0409]File[0405]Soubor[0407]Datei

The above string contains 3 languages, 0409 is a hexadecimal code for U.S. English, 0405 is code for Czech and 0407 is a code for German.

List of language codes can be found at Microsoft site

When a string in multi-language format is displayed in menu, only one language is selected. If the currently active language in the application is found in the string, that language is used. Otherwise English or the first language in the string is used.