Creating a Java Resource Bundle

To create a resource bundle for use in your application:

  1. Create a text file with name/value pairs for all of the static text within your application. The name will be used by your application as a variable to call the value for use on a aspx page. See the example below.

  2. After you have added all of your localized text, Save the document. Example: Save them in the WEB-INF\classes\bundles\YourApp\LocaleID directory.

  3. Your resource bundle is now ready for use.

Resource Bundle Example

title=Globalization Manager
titlebar=Edit Locale
appDescription=To edit this locale, simply make the appropriate changes below and click the 'Save' icon.
legend=Localization Properties
formLocaleID=Locale ID
formOtherCode=Other Code
formLocaleName=Locale Name
formDateMask=Locale Date Mask
formIsSupported=Is Locale Supported?
supportedOption0=No
supportedOption1=Yes
formTimeMask=Locale Time Mask
formAltLocaleName=Alternate Locale Name
formClock=Locale Clock
form12Hour=12 Hour Clock
form24Hour=24 Hour Clock
formISOCode=ISO Charset
formSynchWith=Synch this locale with:
btnAltSave=Save
jsISOCode=You must enter an ISO Code for this locale.
jsDateMask=You must enter a date mask.
jsTimeMask=You must enter a time mask.
jsSynch=Please choose a supported locale to synchronize with.
jsDisable=You cannot disable support for default system locale.
jsSynchDifferent=You must choose a different locale to synchronize with.