Configuring a custom locale in Rule Designer

You can add your own custom locale to Rule Designer.

About this task

To integrate a new verbalizer and language extension in Rule Designer, you create a plug-in project that extends Rule Designer and declares an association between your custom locale and a verbalizer.

Procedure

  1. Create a project in Rule Designer.
  2. Create a custom business rule language (BRL) .properties file for your locale.
  3. Add it to the ilog.rules.brl.i18n package. For example, if your custom locale is en_NZ, create a file that is named brl_en_NZ.properties
    Tip: You make a copy of an existing .properties file and modify it.
  4. In your custom .properties file, add a class that represents the verbalizer for your custom locale, which is just an empty class that derives from the English verbalizer. For example, for the custom locale en_NZ, use the following class: IlrNewZealandVerbalizer

    This class represents the class loader of the project.

  5. Add an extension point that declares the custom locale and the verbalizer: ilog.rules.studio.model.vocabulary.verbalizers
  6. Add an extension point that declares the extension for the business action language (BAL) and business query language (BQL): ilog.rules.studio.model.brl.languageExtensions

    This extension allows you to extend the business rule language definition (BRLDF) classpath that is used to look for a language definition, in this example the brl_en_NZ.properties language definition.

  7. Deploy the new project in Rule Designer.