A resource bundle stores selected characteristics of an object as key and value pairs in a set of properties (.properties) files. You can store a variety of characteristics in resource bundles, like localized strings or properties for an Ant script.
When used for internationalizing source code, resource bundles contain one properties file for each locale. The key is the name of the property and must be the same in each locale. The value is the localized string displayed by the object at runtime and can vary for each locale.
When you create a resource bundle in the IDE, a properties object node ()
is created in the Filesystems tab of the Explorer. Each properties object node
expands to reveal nodes for each of its locales (
)
and keys(
).
You can modify a properties file by opening it in the Source Editor or by right-clicking
its node in the Explorer and choosing commands from its contextual menu.
There are two ways of displaying a properties file:
For information on how to create, remove, and change properties, see:
Creating a Properties FileFor information on how to create, remove, and change locales for a property, see:
Adding a Property
Modifying a Properties File
Removing a Property
Adding and Removing a Locale
Editing a Locale