Versions Compared

Key

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

...

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.

  • Open the Delft-FEWS JAR file (In Total Commander, select the \bin\Delft_FEWS.jar file and press CTRL+

...

  • PGDN.
  • 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.
  • Rename the file to messages_fr.properties.
  • Translate the parts of the file after the '=' sign and save the file.

Image Added

  • Copy the messages_fr.properties file to the Delft-FEWS patch filen: \patch.jar\nl\wldelft\fews\gui\messages_fr.properties
  • Make a change to the global.properties file of your FEWS application.
    • LANGUAGE=fr
  • Start the Delft-FEWS application

Image Added


There is a language file for every Delft-FEWS display, not all displays are used in each Delft-FEWS application. When a new language is added to Delft-FEWS it is important to translate the language files for the most important Delft-FEWS GUI

  • FEWS Explorer: \nl\wldelft\fews\gui\messages_en.properties
  • FEWS Login: \nl\wldelft\fews\gui\login\messages_en.properties
  • Dashboard: \nl\wldelft\fews\gui\plugin\dashboard\messages_en.properties
  • Forecast Manager Display: \nl\wldelft\fews\gui\plugin\forecast\messages_en.properties
  • Spatial Display: \nl\wldelft\fews\gui\plugin\grid\messages_en.properties
  • Manual Forecast Display: \nl\wldelft\fews\gui\plugin\manualforecast\messages_en.properties
  • System Monitor: \nl\wldelft\fews\gui\plugin\systemmonitor\messages_en.properties
  • Time Series Display: \nl\wldelft\fews\gui\plugin\timeseries\messages_en.properties


Once the most important Language files are translated, please send the files to Deltares Product Management (fews-pm@deltares.nl) so we can share these with the larger Delft-FEWS community and add the languge to the next Delft-FEWS release.

A complete set of language files from the latest Delft-FEWS 2020.02 release is attached.


Delft-FEWS is developed in Java, a Java Runtime is provided in the Delft-FEWS \jre folder. Currently the following languages are included in the Java JRE: de,es,fr,in,nl,vi,zh. New languages can be added to the Java JRE on request. The Java JRE languages are required for the default Java displays that are used to open files, save files, etc..