Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Delft-FEWS GUI is available in multiple languages, the default language of Delft-FEWS is English. Changing the Language file of the Delft-FEWS GUI is configured in the global.properties file. The following languages are currently available for the Delft-FEWS GUI: 

E.g. COUNTRY=AU, LANGUAGE=EN, VARIANT=BOM

COUNTRY /LANGUAGE / VARIANT selects the language files that are used in the user interface

lines need to be present in the global.properties file.

  • LANGUAGE=EN

It is also possible to have a variant to the selected language. The variant language files will use the default language values with for some GUI elements a different text. In the example below the country is set to Australia (AU) with a variant set to BOM.

  • COUNTRY=AU
  • VARIANT=BOM

The language files in the FEWS code will then have the following names.

  • messages_en.properties
  • messages_en_AU_BOM.properties

The following languages are currently available for the Delft-FEWS GUILANGUAGE default is english. Other supported languages:

  • Dutch (nl)
  • German (de)
  • Spanish (es)
  • Chinese (LANGUAGE=zh, COUNTRY=CN)
  • Chinese / Taiwan (LANGUAGE=zh, COUNTRY=TW)
  • Indonesian (in)
  • Vietnamese (LANGUAGE=vi or LANGUAGE=vn)

Adding a Language files to Delft-FEWS

When a new GUI language is required, the default English language captions need to be translated to this new language. The language files for all GUI's need to be translated. This example will explain the steps when adding the French (fr) language to Delft-FEWS GUI.

  1. Open the Delft-FEWS JAR file (In Total Commander, select the \bin\Delft_FEWS.jar file and press CTRL+PGWN.
  2. Select the file: \bin\Delft_FEWS.jar\nl\wldelft\fews\gui\messages_en.properties and copy the file to a local folder on your drive.
  3. Rename the file to messages_fr.properties.