Post-localization on the client side

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

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

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

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

    For 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
  4. Rebuild the Enterprise Archive (EAR) file.
    Note: Ensure that you run the script in the bundle.map and 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.