Skip to content

Language Localization

Abdullah Shah edited this page Jan 5, 2018 · 1 revision

The ICCR supports the ability to emit localized (i.e. English, German, Spanish) text.

To have ICCR serve in a desired language, two settings in iccr.properties must be set, The language code and the country code.

To have ICCR emit text in the desired language (German for example), you must:

  • Set the desired language code as the value of the iccrLanguageLocale property in iccr.properties, for example: iccrLanguageLocale=de

  • Set the iccrCountryLocale value in iccr.properties, for example: iccrCountryLocale=DE

  • Populate a MessagesBundle property file containing all the desired language text

  • If a language property file does not exist, create a new file with the language value and country value in the property file name, for example MessagesBundle_de_DE.properties.

  • Copy all the properties from the US English properties bundle file (MessagesBundle_en_US.properties) into the target language file, for example MessagesBundle_de_DE.properties

  • In the target language property file (i.e. MessagesBundle_de_DE.properties) replace all the English text with the appropriate translations.

Possible values for language code (i.e. English, French, German, Spanish, Italian) are: en, fr, de, sp, it For details, see http://www.oracle.com/technetwork/java/javase/java8locales-2095355.html

Possible values for country code for English speaking countries (i.e. US, GreatBritain) are: US, GB, etc

Possible values for country code for German speaking countries (i.e. Germany, Austria, Switzerland) are: DE, AT, CH For details, see http://www.oracle.com/technetwork/java/javase/java8locales-2095355.html

Clone this wiki locally