Versions Compared

Key

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

This his section will provide detailed instructions on how to setup, use and edit localisation.

...

To add new localisations to the application - e.g. Portuguese create a sub directory inside the *locale* directory.  e.g. add the directory ‘pt_PT’

...

Copy , create a copy of the messagesStatic.properties file from in the locale folder and paste the file into the new sub directory created in the previous step.  This file needs to be renamed to include the directory name relevant language code e.g. ‘messagesStatic_pt_PT.properties’. This file can then be edited to change the language for various parts of the dashboard.

...

The same can be achieved with the user generated language file, by changing the name of the file to reflect the relevant language code e.g. ‘messagesUserEntered_pt_PT.properties’. Changes made in this file will then also be reflected when selecting the language in the dashboard.

Finally, you need to edit available-languages.properties in locale to enable the dashboard to pick up your new language files - e.g. add Portuguese=pt_PT. This will then create a dropdown drop down menu for the language on the login screen of the dashboard.

...