You localize thebundle-index.properties
file of Sterling Business Center according to the
standards of your location.
About this task
To localize the bundle-index.properties
file:
Procedure
- Generate the
bundle-index.properties
file.
To generate the file, run the following script in <INSTALL_DIR>/bin
to
extract the literals from the bundle javascript files to the bundle-index.properties
file:
For Windows:
sci_ant.cmd -f jsUtil.xml bundle.index -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbc/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbc/localization_index
where -Dindexdir
is
the output directory.
For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.index -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbc/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbc/localization_index
where -Dindexdir
is
the output directory.
A new folder, localization_index,
containing
the following file is created in the -Dindexdir
directory:
bundle-index.properties
duplicate-keys-map
- Copy
bundle-index.properties
to
the bundle-index_<language>_<country or region>.properties
file
pertaining to the locale. For example,
if you want to localize the application for France in French language,
copy bundle-index.properties
to the bundle-index_fr_FR.properties
file.
- Edit the
bundle-index_<language>_<country
or region>.properties
file with the translations, and
save the file. The bundle-index.properties
file
is localized. After this, perform the post-localization steps on the
client side.
Note: Ensure that you
run the script in the bundle.index
mode for the Web
UI Framework files.