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 window. 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 Filesystems window and choosing commands from its contextual menu.
There are two ways of displaying a properties file:
See Also | |
---|---|
Creating a Properties File Adding a Property Modifying a Properties File Removing a Property Adding and Removing a Locale Editing a Locale |