Tutorials > Customize > Create a multicultural store
Create files for the new locales
In this step of the tutorial, you create two different files for the new locales:
Procedure
- Follow these steps to create new properties files:
- 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
- WC_EAR/Stores.war/Web Content/WEB-INF/classes/ storedir
- workspace_dir/Stores/Web Content/WEB-INF/classes/ storedir
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.
- Copy all files that have en_US embedded in the name, and rename each file to replace the en_US with en_CA.
- Copy all files that have fr_FR embedded in the name, and rename each file to replace the fr_FR with fr_CA.
- 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'
- WC_EAR/Stores.war/Web Content/storedir/locale/images
- workspace_dir /Stores/Web Content/storedir/locale/images
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:
You have now created property and image files for the new locales so that they can be used in WebSphere Commerce.
- Open the preceding directory.
- Copy all files that have en_US embedded in the name, and rename each file to replace the en_US with en_CA.
- Copy all files that have fr_FR embedded in the name, and rename each file to replace the fr_FR with fr_CA.
In the next step, you learn how to group the locales by country or region and separate them by store.