Localize new bundleJavaScript entries
If you add new entries to your localized bundle files, you must update your localization.
About this task
This section describes the steps required
to update your localized bundle JavaScript files
with the new entries that have been added in the English bundle
js files after localization of the application is completed.
To update the bundle js files after
installing the changes in the English bundle js files:
Procedure
- Run the jsUtil tool to generate a fresh
bundle-index.propertiesfile 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/sfs/war-Dindexdir=<INSTALL_DIR>/repository/eardata/sfs/localization_indexwhere
-Dindexdiris the output directory.For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.index-Dsourcedir=<INSTALL_DIR>/repository/eardata/sfs/war-Dindexdir=<INSTALL_DIR>/repository/eardata/sfs/localization_indexwhere
-Dindexdiris the output directory.The
bundle-index.propertiesfile is generated in thelocalization_indexdirectory. - Compare the
bundle-index.propertiesfile generated in Step 1, and your localizedbundle-index_<language_code>_<country or region or region_code>.propertiesfile to determine the newly added entries. Translate the newly added entries and add them in your localizedbundle-index_<language_code>_<country or region or region_code>.propertiesfile. - Run the jsUtil tool in map mode to regenerate
the localized
bundle jsfiles from the updatedbundle-index_<language_code>_<country or region or region_code>.propertiesfile.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/sfs/war-Dindexdir=<INSTALL_DIR>/repository/eardata/sfs/localization_index-Dindexfile=<INSTALL_DIR>/repository/eardata/sfs/localization_index/bundle-index_<language_code>_<country or region or region_code>.properties -Dwebcontentdepth=0For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.map-Dsourcedir=<INSTALL_DIR>/repository/eardata/sfs/war-Dindexdir=<INSTALL_DIR>/repository/eardata/sfs/localization_index-Dindexfile=<INSTALL_DIR>/repository/eardata/sfs/localization_index/bundle-index_<language_code>_<country or region or region_code>.properties -Dwebcontentdepth=0For example, if you have localized to the French locale and the localization directory is
<INSTALL_DIR>/repository/eardata/sfs/localization_index, and the localizedbundle-index.propertiesfile isbundle-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/sfs/war-Dindexdir=<INSTALL_DIR>/repository/eardata/sfs/localization_index-Dindexfile=<INSTALL_DIR>/repository/eardata/sfs/localization_index/bundle-index_fr_FR.properties -Dwebcontentdepth=0For Linux/UNIX:
./sci_ant.sh -f jsUtil.xml bundle.map-Dsourcedir=<INSTALL_DIR>/repository/eardata/sfs/war-Dindexdir=<INSTALL_DIR>/repository/eardata/sfs/localization_index-Dindexfile=<INSTALL_DIR>/repository/eardata/sfs/localization_index/bundle-index_fr_FR.properties -Dwebcontentdepth=0 - Regenerate the minified localized
bundle jsfiles by performing the following steps:- Download the
jsmin.jarfile and run the following command from the<INSTALL_DIR>/binfolder:For Windows:
install3rdParty.cmdFor Linux/UNIX:
install3rdParty.sh - Run the following command:
For Windows:
sci_ant.cmd -f jsUtil.xml minify-js -DsrcDir=<INSTALL_DIR>/repository/eardata/sfs/war -DdestDir=<INSTALL_DIR>/repository/eardata/sfs/war -Dminify=true -DcreateIndividualFile=false -DjsbDir=<INSTALL_DIR>/repository/eardata/sfs/war/builder/sfsFor Linux/UNIX:
./sci_ant.sh -f jsUtil.xml minify-js -DsrcDir=<INSTALL_DIR>/repository/eardata/sfs/war -DdestDir=<INSTALL_DIR>/repository/eardata/sfs/war -Dminify=true -DcreateIndividualFile=false -DjsbDir=<INSTALL_DIR>/repository/eardata/sfs/war/builder/sfs
- Download the
- Rebuild the EAR and redeploy the application.