Post-localization on the client side
You must perform a set of steps on the client side after you localize the bundles.
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 file, run the following command:
For Windows:
sci_ant.cmd -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sma/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sma/localization_index/ <localized bundle-index file> -Dwebcontentdepth=0For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<<INSTALL_DIR>/repository/eardata/sma/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sma/localization_index/ <localized bundle-index file> -Dwebcontentdepth=0For example, if you have localized to the French locale and the localization directory is
<INSTALL_DIR>/repository/eardata/sma/localization_index, and the localized bundle-index file isbundle-index_fr_FR, you must run the following command:For Windows:
sci_ant.cmd -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sma/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sma/localization_index/ bundleindex_fr_FR -Dwebcontentdepth=0For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sma/localization_index -Dindexfile=<INSTALL_DIR>/repository/eardata/sma/localization_index/ bundleindex_fr_FR -Dwebcontentdepth=0 - Run the following command:
For Windows:
sci_ant.cmd -f jsUtil.xml minify-js -DsrcDir=<INSTALL_DIR>/repository/eardata/sma/war -DdestDir=<INSTALL_DIR>/repository/eardata/sma/war -Dminify=true -DcreateIndividualFile=false -DjsbDir=<INSTALL_DIR>/repository/eardata/sma/war/builderFor Linux/UNIX:
.
/sci_ant.sh -f jsUtil.xml minify-js-DsrcDir=<INSTALL_DIR>/repository/eardata/sma/war -DdestDir=<INSTALL_DIR>/repository/eardata/sma/war -Dminify=true -DcreateIndividualFile=false -DjsbDir=<INSTALL_DIR>/repository/eardata/sma/war/builder - Rebuild the Enterprise Archive (EAR) file.
Note: Ensure that you run the script in the
bundle.mapand minify-js modes for the Web UI Framework files.Note: After localizing the System Management Administration Console, 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.