The resource bundle that is retrieved by a portal component is based on the resource bundle name defined in the deployment descriptor, plus the regional settings for the current user.
The rules for selecting the locale-specific resource bundle are defined by the Java programming language.
The locale is determined by the following properties in the order shown:
Component locale
This locale is defined by the following component profile properties:
ForcedRequestLanguage
ForcedRequestCountry
This enables you to force a component to use a specific locale, such as for administration components.
Portal mandatory locale
This locale is defined in prtDefault.properties by the following properties:
request.mandatorylanguage
request.mandatorycountry
This locale is useful for administrators setting up a portal environment.
User locale
This locale is defined in the profile of the current user.
Request locale
The request locale is defined by the browser. This is used, for example, for anonymous users or users that do not have locales defined in their profiles.
Portal default locale
This locale is defined in prtDefault.properties by the following properties.
request.defaultlanguage
request.defaultcountry
System default locale
This is the Java default locale defined by the system, either by the operating system or by the JVM.
For example, if the current default locale is en_US, the locale of the component is fr_CH and the resource bundle name is localization, the portal will look for resource bundles in the following order:
localization_fr_CH
localization_fr
localization_en_US
localization_en
localization
The resource bundles must be stored in the PORTAL-INF/private/ folder.