Translating the application

To translate the client interface, go on GeoNetwork on Transifex. Only the reference language (ie. en) MUST be updated on github. All other translations MUST be on Transifex.

Main files to translate are the Angular UI ones:

../_images/transifex.png

Once translated, the new language needs to be added to the application.

// Add the language here
module.constant('gnLangs', {
  langs: {
    'eng': 'en',
    'dut': 'du',
    'fre': 'fr',
    'ger': 'ge',
    'kor': 'ko',
    'spa': 'es',
    'cze': 'cz'
  },


// Lang names to be displayed in language selector
$scope.langLabels = {'eng': 'English', 'dut': 'Nederlands',
  'fre': 'Français', 'ger': 'Deutsch', 'kor': '한국의',
  'spa': 'Español', 'cze': 'Czech'};

To automatically retrieve & update translations files, the script source file web-ui/download-from-transifex.sh can be used.

Translating a standard

To translate a standard, see the schema folder (source file schemas/iso19139/src/main/plugin/iso19139/loc). Those files are used in the editor and formatters to translate standard elements, to provide help text, recommended values list, ...