Configuring a custom locale in Decision Center

You can add your own custom locale to Decision Center.

Before you begin

In Rule Designer, you create a custom business rule language (BRL) .properties file (for example, brl_en_NZ.properties) and add it to the ilog.rules.brl.i18n package.

About this task

To add your custom locale to Decision Center, you create two preferences.properties files to override the default properties.

Note: Messages will be in English. It is the fallback when translations are not found.

Procedure

  1. In the Enterprise console, create a preferences.properties file and add it in the ilog.rules package.
  2. Override the default properties to include your custom locale (for example, en_NZ):
    1. Add the list of user locales available in the Enterprise console:
      teamserver.web.AvailableLocales=en, fr, de, es, it, ja, ko, nl, ru, pt_BR, zh_CN, zh_TW, ar, iw, pl, en_NZ
    2. Add the list of verbalizers available in the Enterprise console and the Business console:
      teamserver.brl.verbalizers=ar, ar_EG, en, en_US, en_GB, en_NEUTRAL, fr, fr_FR, es, es_ES, de, de_DE, nl, nl_NL, ja, ja_JP, zh, zh_CN, zh_TW, pt, pt_BR, it, it_IT, ko, ko_KO, ru, ru_RU, iw, iw_IL, pl, pl_PL, en_NZ
    3. Add the verbalizer used for the custom locale en_NZ:
      teamserver.brl.verbalizer.en_NZ=ilog.rules.vocabulary.verbalization.english.IlrNewZealandVerbalizer

      If you do not have a custom implementation, use the default verbalizer:

      teamserver.brl.verbalizer.en_NZ=ilog.rules.vocabulary.verbalization.english.IlrEnglishVerbalizer
  3. Important: To synchronize Decision Center with Rule Designer, you must set the same persistence locale in both.
    Set the persistence locale to match the custom locale: teamserver.locale=en_NZ.

    This is only required if you want to define a vocabulary for your custom locale (for example, en_NZ).

  4. In the Business console, create a preferences.properties file and add it in the com.ibm.rules package.
  5. Override the default properties for the user locales available in the Business console by adding your custom locale (for example, en_NZ):
    decisioncenter.web.core.AvailableLocales=en, fr, de, es, it, ja, ko, nl, ru, pt_BR, zh_CN, zh_TW, ar, iw, pl, en_NZ
  6. Package the three .properties files and their respective packages into a JAR file.
  7. Repackage the Decision Center archive with the Ant task repackage-ear. Use the -DadditionalJars argument to specify the JAR file.
  8. Deploy the Decision Center archive.