In this blog I would like to discuss a simple work around for a program limitation.
Background:
Using resource bundles enables portal applications to be displayed in different languages, you can create resource bundles that hold all language- or country-specific text strings or other resources.
In addition, you can create different resource bundles for each locale-country combination that you want to support, and then add these resource bundles to your WAR file. Your components can retrieve strings or other resources from these files.
Adding resource bundles to war file:
To add your resource bundles to a war file you need to:
For more information about using resource bundles please refer to http://help.sap.com
(http://help.sap.com/saphelp_nw73/helpdata/en/49/dba57d5dba551de10000000a42189c/content.htm)
Limitation description:
When loading two resource bundle files that one of the file names contains the name of the other file, the system will load the values from the last loaded file only.
For example: If one of the file’s name is "ResourceBundleFileName.properties", and the other file’s name is "NewResourceBundleFileName.properties", and the second one was loaded last,
Only values from NewResourceBundleFileName.properties will be used.
Suggested Workaround:
In order to avoid this situation, make sure that the names of your resource bundle files are different and avoid situation where one file name contains the name of the another file name.
As demonstrated below – none of the file’s names contains the name of another file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 |