Including language data

In this lesson, you will learn how to include the language data you created in the previous step into your WebSphere Commerce instance. In this step of the tutorial, you include the locale information by updating the instance configuration files.

About this task

You can add default languages to your instance when creating the instance, however non-default 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 files must be updated. The following steps are required in order to update the instance configuration files and apply it to the existing WebSphere Commerce instance:

Procedure

  1. Update the WebSphere Commerce configuration files to support the new languages. To have the languages added to your instance update both configuration files.
    1. Locate the WebSphere Commerce configuration files.
    2. Back up both of the WebSphere Commerce configuration files.
    3. Open each 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 the attribute is "wcs.bootstrap_multi_en_US.xml,wcs.bootstrap_multi_fr_FR.xml".
    5. Append values to the entry as follows: ",wcs.bootstrap_multi_en_CA.xml,wcs.bootstrap_multi_fr_CA.xml".
    6. Within the instance element, find the attribute Encoding; ensure that the encoding for your new supported languages is set to Unicode (UTF-8)
    7. Within the instance element, find the attribute SupportedLanguages.
    8. Update the value to support the languages you want for your instance. For example, SupportedLanguages="-1, -24, -25" will cause the WebSphere Commerce instance to support the languages: United States English, Canadian English and Canadian French.
    9. Save and close the files.
  2. Stop the WebSphere Commerce instance.
  3. Restart the WebSphere Commerce instance.

Results

You have now included the necessary language data into your WebSphere Commerce instance to view your new languages in the language selection screen of the WebSphere Commerce Accelerator. In the next lesson you will create property and image files for your new locales.

You have included the new locale into your WebSphere Commerce instance. In the next step, you create Management Center properties files and resource bundle files for the en_CA and fr_CA locales.