How to set localization (Resource Bundle) for multi language support with 4 characters language format?

Document ID : KB000051639
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When configuring Identity Manager to support several languages, we can either use 2 characters (short - i.e. "en") of 4 characters (long - i.e. "en_CA") language code in the browser. The long version must be configured in a specific way.

Solution:

When the browser is configured to use long language format (i.e. "en_CA" for Canada) we must configure localization support in the following way:

  1. If both "en" and "en_CA" are possible user language preference, we must configure a resource bundle per string - this means we require to have resource and exception files per string - so one pair will be IMSExceptions_en.properties / IMSResources_en.properties and another one will be created for IMSExceptions_en_ca.properties / IMSResources_en_ca.properties.

  2. When using long format language - the properties files must use underscores (IMSResources_en_ca.properties) rather than dashes (IMSResources_en-ca.properties).