Localizing new bundle js entries
You can review the steps required to update your localized bundle js
files with the new entries that have been added in the English bundle js files
after localization of the application is completed.
About this task
To update the bundle
js files after installing the changes in the English bundle
js files:
Procedure
- Run the
jsUtiltool to generate a freshbundle-indexfile to obtain the newly added English bundle entries.Navigate to the
<INSTALL_DIR>/binfolder and run the following command:For Windows:
sci_ant.cmd -f jsUtil.xml bundle.index -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sma/localization_indexFor Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.index -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<INSTALL_DIR>/repository/eardata/sma/localization_indexwhere
<INSTALL_DIR>is the directory in which System Management Administration Console is installed.The
bundle-indexfile is generated in the localization_indexdirectory. - Compare the
bundle-indexfile generated in 1, and your localizedbundle-index_<language>_<country>file to determine the newly added entries. Translate the newly added entries and add them in your localizedbundle-index_<language>_<country>file. - Run the
jsUtiltool in map mode to regenerate the localized bundle js files from the updatedbundle-index_<language>_<country>file.Navigate to the
<INSTALL_DIR>/binfolder and run the following command:For Windows:
sci_ant.cmd -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<localization directory containing the localized bundle-index file> -Dindexfile=<localization directory containing the localized bundle-index file>/ <localized bundle-index file> -Dwebcontentdepth=0For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.map -Dsourcedir=<INSTALL_DIR>/repository/eardata/sma/war -Dindexdir=<localization directory containing the localized bundle-index file> -Dindexfile=<localization directory containing the localized bundle-index file>/ <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 - Regenerate the minified localized bundle
js files.
Navigate to the
<INSTALL_DIR>/binfolder and 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 EAR and re-deploy the application.