Tutorials > Customize > Create a multicultural store

< Previous | Next >


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

  1. Open the WebSphere Commerce configuration file.

  2. Back up the WebSphere Commerce configuration file.

  3. Open this file for editing and perform a search function to search for references to the <instance> element.

  4. 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".

  5. Append values to this entry... ",wcs.bootstrap_multi_en_CA.xml,wcs.bootstrap_multi_fr_CA.xml".

  6. Again, within the instance element, find the attribute DefaultLang.

  7. 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).

  8. Again, within the instance element, find the attribute SupportedLanguages.

  9. 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.

  10. Save this file.

  11. Stop the WCS instance.

  12. Restart the WCS instance.

  13. 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.

  14. Select Store > Change Profile.

  15. Under the Language Tab, select 'Canadian English' and 'Canadian French' from the Available Languages and point to the Selected Languages box.

  16. Once the 'Canadian English' language is in the Selected Languages box, highlight that entry and click the 'set as language default' button.

  17. Under the Currency Tab, select 'Canadian Dollar' from the Available currencies box and point to the Selected currencies box.

  18. Click OK.

  19. 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.

< Previous | Next >


+

Search Tips   |   Advanced Search