Full export to back up existing localization literals

About this task

To create a full export to back up the existing localization literals:

Procedure

  1. Run the LocalizedStringReconciler tool from <INSTALL_DIR>/bin in EXTRACT mode as follows:

    For UNIX:

    sci_ant.sh -f localizedstringreconciler.xml extract 
    -Ddestdir=<INSTALL_DIR>/repository/factorysetup/complete_installation/XMLS

    For Windows:

    sci_ant.cmd -f localizedstringreconciler.xml extract 
    -Ddestdir=<INSTALL_DIR>\repository\factorysetup\complete_installation\XMLS

    This exports the literals that are currently defined in the YFS_LOCALIZED_STRINGS table.

  2. To extract the existing localized strings for a specific locale, use the optional parameters locale and country. The usage is as follows:

    For UNIX:

    sci_ant.sh -f localizedstringreconciler.xml extract 
    -Ddestdir=<INSTALL_DIR>/repository/factorysetup/complete_installation
    /XMLS -Dlanguage=fr -Dcountry=FR

    For Windows:

    sci_ant.cmd -f localizedstringreconciler.xml extract 
    -Ddestdir=<INSTALL_DIR>\repository\factorysetup\complete_installation
    \XMLS -Dlanguage=fr -Dcountry=FR

    For example, if there are three locales that contain localized factory defaults in the database, one file is created for each locale in the following format:

    <baselanguage>_<basecountry>_ycpdblocalizedstrings_<language>_
    <country>_db.properties

    Each file is saved within the extn folder within the respective locale directory. For instance, for the locale fr_FR, the file en_US_ycpdblocalizedstrings_fr_FR_db.properties is created and saved to the <INSTALL_DIR>/repository/factorysetup/complete_installation/XMLS/fr_FR directory.

  3. To re-import the backed-up literals, run the LocalizedStringReconciler tool from <INSTALL_DIR>/bin in IMPORT mode with the file for which you have exported the literals as follows:

    For UNIX:

    sci_ant.sh -f localizedstringreconciler.xml import 
    -Dsrc=<INSTALL_DIR>/repository/factorysetup/complete_installation/XMLS

    For Windows:

    sci_ant.cmd -f localizedstringreconciler.xml import 
    -Dsrc=<INSTALL_DIR>\repository\factorysetup\complete_installation\XMLS