Tutorials > Customize > Create a multicultural store

< Previous | Next >


Create files for the new locales

In this step of the tutorial, you create two different files for the new locales:


Procedure

  1. Follow these steps to create new properties files:

    1. Open the starter store property files. Starter stores property files are in the WC_INSTALL\WEB-INF\classes\store directory directory within the deployed instance

      • Where store directory is the directory of the deployed store

      Each locale owns its own property files. Create new property files for each new locale created. In this example, copy property files with the locale en_US embedded in the file name; then rename with the en_CA replacing en_US. Similarly, replace fr_FR with the fr_CA .

      See the Partial application section in Update applications with the console, in the WebSphere Application Server Information Center for additional instructions. Select Local File System for the path.

    2. Copy all files that have en_US embedded in the name, and rename each file to replace the en_US with en_CA.

    3. Copy all files that have fr_FR embedded in the name, and rename each file to replace the fr_FR with fr_CA.

  2. Optional: Create image files for the new locales. Starter stores that are provided with WebSphere Commerce carry image files in the storedir\ locale\images directory within the deployed store directory:

    • Where store directory is the directory of the deployed store

    • Where locale is the new locale that you have create when you massloaded the bootstrap files (the example used in this document was 'en_CA' and 'fr_CA'

    Each locale owns its own image directory titled by the locale name itself. Create new image files for each new locale created. For this example, image files within the locale en_US directory can be copied and then renamed with the en_CA string to replace the en_US value. Similarly, image files within the locale fr_FR directory can be copied and then renamed with the fr_CA string to replace the fr_FR value.

    Follow these steps to create image files for the new locales:

    1. Open the preceding directory.

    2. Copy all files that have en_US embedded in the name, and rename each file to replace the en_US with en_CA.

    3. Copy all files that have fr_FR embedded in the name, and rename each file to replace the fr_FR with fr_CA.
    You have now created property and image files for the new locales so that they can be used in WebSphere Commerce.

In the next step, you learn how to group the locales by country or region and separate them by store.

< Previous | Next >


+

Search Tips   |   Advanced Search