Post-localization on the client side for Sterling Business Center
Client side post-localization procedure for Windows and Linux/UNIX.
About this task
After you have localized the bundles, perform the following steps on the client side:
Procedure
- Navigate to the
<INSTALL_DIR>/binfolder. - To generate localized JavaScript source files from the localized
bundle-index.properties file, run the following command:
For Windows:
sci_ant.cmd -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbc/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbc/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sbc/localization_index/bundle- index_<language>_<country or region>.properties -Dwebcontentdepth=0For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbc/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbc/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sbc/localization_index/bundle -index_<language>_<country or region>.properties -Dwebcontentdepth=0For example, if you have localized to the French locale and the localization directory is
<INSTALL_DIR>/repository/eardata/sbc/localization_index,and the localizedbundle-index.properties fileisbundle-index_fr_FR.properties, you must run the following command:For Windows:
sci_ant.cmd -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbc/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbc/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sbc/localization_index/bundle -index_fr_FR.properties -Dwebcontentdepth=0For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sbc/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sbc/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sbc/localization_index/bundle -index_fr_FR.properties -Dwebcontentdepth=0 - To generate minified JavaScript source files from the localized
bundle-index.properties file, run the following command:
For Windows:
sci_ant.cmd -f jsUtil.xml minify-js -DsrcDir=<INSTALL_DIR>/repository/eardata/sbc/war -DdestDir=<INSTALL_DIR>/repository/eardata/sbc/war -Dminify=true -DcreateIndividualFile=false -DjsbDir=<INSTALL_DIR>/repository/eardata/sbc/war/builder/sbcFor Linux/UNIX:
./sci_ant.sh -f jsUtil.xml minify-js -DsrcDir=<INSTALL_DIR>/repository/eardata/sbc/war -DdestDir=<INSTALL_DIR>/repository/eardata/sbc/war -Dminify=true -DcreateIndividualFile=false -DjsbDir=<INSTALL_DIR>/repository/eardata/sbc/war/builder/sbc - Rebuild the
Enterprise ARchive (EAR) file.For more information about rebuilding the EAR, see the Installing topic.
Notes:
- Ensure that you run the script in the
bundle.mapandminify-jsmodes for the Web UI Framework files. For more information about the bundle collector utility, refer to the Localizing of Web UI Framework. - After localizing the Sterling Business Center application, you may want to verify the application. However, because resource bundles are cached in a Web browser, it is recommended that you clear the Web cache before verifying the application.
- Ensure that you run the script in the