Locale inconsistencies between JRules V7.x and V8

The locale designation for your rules must be consistent with the locale for existing rules. It must also be consistent with the Decision Center locale, if you publish rules to Decision Center.

In previous versions of JRules, all locales except English are defined by two letters that correspond to the language of the locale, such as fr for French, de for German. English is set to four letters, en_US, which denotes the language and country. In Operational Decision Manager, locales have a four-letter designation. For example, fr_FR sets the language to French and the country to France.

Previous versions of JRules used zh to represent Simplified Chinese. From version 7.1, localized versions of the product provide two designations:

In version 7.1, the Windows Start menu shortcut uses the four-letter designation for the locale.

When you migrate your rule projects into V8.0 or later, make sure that the locale used to launch Rule Designer is set to the same locale as your rule artifacts. When you write rules in Rule Designer, the locale property of the rule artifact is automatically set to that of the locale in which you are running Eclipse. This means that, if you open an existing 7.0 rule project in Rule Designer and add rules to it in version 8.0 or later, the rule project contains some rules with the two-letter designation, and others with the new, four-letter designation.

Having a combination of short and long locale designations can cause the following issues:

Action Issue
Parsing rules When you write rules in Rule Designer, the rule parser can, in most cases, detect which locale to use. For example, if your locale is fr_FR, the Rule Designer parser interprets both fr and fr_FR as French. Rule Designer does not report an error, but your rule projects nonetheless contain inconsistencies. Inconsistencies can also occur if you create new rule projects that reference rule projects created in earlier versions.
Using languages that have more than one designation When you import a rule project with a locale set to zh, Rule Designer defaults to Simplified Chinese (zh_CN). If you want to use the newly supported locale of Traditional Chinese (zh_TW) launch Rule Designer using that locale, and create a new project.
Publishing to Decision Center When you publish rules to Decision Center, you get an error stating that you cannot publish the rule project because the locales are different. If the locale in any rule artifact is different from the locale of the Decision Center persistence locale, you cannot publish it.

To enable synchronization between Rule Designer and Decision Center, you must make sure that the locale property in Rule Designer, the locale of your rule artifacts, and the Decision Center persistence locale all match.

How you match locales between Rule Designer and Decision Center depends on your current setup:

If you do not want to change locale each time you migrate, use the four-letter locale for all your new projects and make sure that the Decision Center persistence locale for this database uses the same four-letter locale.