Tutorials > Customize > Create a multicultural store
Include language data
In this step of the tutorial, we will learn how to include the language data you created in the previous step, into the WCS instance.
Although you can add default languages to the instance when you create it, nondefault languages such as the en_CA example you are using must be added after the instance has been created.
To include new languages that were massloaded through the bootstrap files, the instance configuration file must be updated. The following steps are required in order to update the instance configuration file and apply it to the existing WCS instance:
Procedure
- Open the WebSphere Commerce configuration file.
- Back up the WebSphere Commerce configuration file.
- Open this file for editing and perform a search function to search for references to the <instance> element.
- Within the instance element, find the attribute BootstrapMulti (a typical entry for this attribute would be "wcs.bootstrap_multi_en_US.xml,wcs.bootstrap_multi_fr_FR.xml".
- Append values to this entry... ",wcs.bootstrap_multi_en_CA.xml,wcs.bootstrap_multi_fr_CA.xml".
- Again, within the instance element, find the attribute DefaultLang.
- Update this value to correspond to the default language you want for the instance. For example, DefaultLang="-1" can be updated to DefaultLang="124" to correspond to Canadian English as the default language for the instance in this example.
Verify the encoding for the new supported language is set to Unicode (UTF-8).
- Again, within the instance element, find the attribute SupportedLanguages.
- Update this value to support the languages you want for the instance. For example, SupportedLanguages="-1, 124, 125" will cause the WCS instance to support the locales: United States English, Canadian English and Canadian French.
- Save this file.
- Stop the WCS instance.
- Restart the WCS instance.
- Log into WebSphere Commerce Accelerator and select the published store for United States English.
To open WebSphere Commerce Accelerator, enter the following URL into a Web browser:https://host_name/webapp/wcs/tools/servlet/ToolsLogon?XMLFile=common.mcLogon where host_name is the fully-qualified WebSphere Commerce development environment Web server host name. The host name may be a virtual host name on the Web server.
- Select Store > Change Profile.
- Under the Language Tab, select 'Canadian English' and 'Canadian French' from the Available Languages and point to the Selected Languages box.
- Once the 'Canadian English' language is in the Selected Languages box, highlight that entry and click the 'set as language default' button.
- Under the Currency Tab, select 'Canadian Dollar' from the Available currencies box and point to the Selected currencies box.
- Click OK.
- Make sure that the languages that appear in the drop-down list correspond to the new languageds entries for the bootstrap files.
You have now included the necessary language data into the WCS instance to view the new languages in the language selection screen of the WebSphere Commerce Accelerator.
In the next step we will create both property and image files for the new locales.