24.2.2. Defining a resource bundle and supported locales

If you are already using resource bundles for localization you may prefer to point to those files. To do so you can define the name of your ressource bundle. The files should be in the classloader of the war containing the *-object.xml where you define them, meaning in the same war file.
Here is an example:
<page>
   <page-name>Weather</page-name>
   <supported-locale>fr</supported-locale>
   <supported-locale>en</supported-locale>
   ...
</page>
With one or the other method, accessing the portal will now display the tab names with the preferred locale if a localized value exists.

Warning

If you change the values in the descriptor (method 1) or in the resource bundles (method 2) you need to use the <if-exists>overwrite</if-exists> so that the values are updated