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

  1. Navigate to the <INSTALL_DIR>/bin folder.
  2. 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=0
    

    For 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=0
    

    For example, if you have localized to the French locale and the localization directory is <INSTALL_DIR>/repository/eardata/sbc/localization_index, and the localized bundle-index.properties file is bundle-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=0
    

    For 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
    
  3. 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/sbc
    

    For 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
    
  4. 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.map and minify-js modes 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.