Users Guide

Localizing Resource Bundles | Localization
OMNM 6.5.3 User Guide 761
Localizing Resource Bundles
You can localize some OpenManage Network Manager (OMNM) text that is not in Localizing
Message Files (described below), but in resource bundles. Resource bundles let you localize static
labels and button text on forms. These resource bundles are in .jar files, and load automatically
based on the locale settings on the operating system where you installed the OMNM software. See
Producing the Properties List
on page 767 for more about file naming.
Resource bundles exist in msgs.jar files like owareapps\redcell\lib\rcform_msgs.jar. The msgs.jar
portion of this filename is common to all existing resource bundles.
The resource bundle for each form contains an ASCII properties file in the same directory as the
form class. For example, “form_A” in the “com.driver” package would be named:
com/driver/form_A.properties
This properties file contains text like:
#Resource bundle for Oware form com.driver.form_A
lblName.text=Name
lblName.tooltipt=Enter your name here
To localize this resource bundle into “Spanish/Mexican,” the resource bundle for form_A in the
com.driver package, is an ASCII properties file in the same directory as the form class, and is
named:
com.driver.form_A_es_MX.properties
With text like:
#Resource bundle for Oware form com.driver.form_A
lblName.text=Nombre
lblName.tooltipt= Incorpore su nombre aquí
By default, a blank follows the equal sign, and the form displays the text specified when it was
created. To override the default, add your text after the equal sign, and create your own .jar with
that modified file, named as specified in
Producing the Properties List
on page 767. Note that not
only the .properties files must follow this convention, you must also name the .jar file containing
them to reflect the locale.