Show TOC

Background documentationLookup of Resource Bundle Locate this document in the navigation structure

 

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:

  1. 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.

  2. 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.

  3. User locale

    This locale is defined in the profile of the current user.

  4. 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.

  5. Portal default locale

    This locale is defined in prtDefault.properties by the following properties.

    • request.defaultlanguage

    • request.defaultcountry

  6. 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:

  1. localization_fr_CH

  2. localization_fr

  3. localization_en_US

  4. localization_en

  5. localization

The resource bundles must be stored in the PORTAL-INF/private/ folder.