X-Cart:Managing Languages

From X-Cart 4 Classic
Revision as of 19:37, 31 January 2010 by Admin (talk | contribs) (Adding Languages)
Jump to: navigation, search

Overview

If your customers come from different countries, or you do business in a multilingual country, having your online store available in several languages will be rather advantageous to your business. X-Cart enables you to build a true multilingual store and translate the store to as many languages as you wish. You can apply several languages to all store interfaces (Customer, Admin, Provider and Partner areas) and different kind of store data, including product and category descriptions, manufacturer pages, static content, etc.

Note: X-Cart out of the box does not support UTF-8 character encoding.

When a store has more than one language, store users can switch between languages using a special selector. For the Customer area the selector can be either a drop-down box, a single-line box with text or a single-line box with language icons (defined by the store administrator in the General settings/Appearance options section); for the Admin, Provider and Partner areas the selector is available as a simple drop-down box only. A selector contains a list of all the languages that are currently installed and activated in the store.

Managing languages 01.png

After a user has switched a language, the text of the current interface will automatically change to the selected language until the current user session expires. When the user starts a new session, the language will be switched back to the store's default language, which is set up by the store administrator.

At the moment X-Cart is delivered with the English language pack only. To add a new language you need to either import a tailored language pack or translate all the language variables on your own. As a rule, translation does not cause any technical difficulties, but it may take time and effort. To translate X-Cart into a different language, first you need to create a copy of an existing language and then either translate its variables directly in the Admin area or export the variables in a CSV file and edit the file with any suitable facility, including a spreadsheet editor like Microsoft Office Excel or OpenOffice.org Calc.

A tailored language pack is a CSV file with translated language variables. Language packs are prepared and distributed by independent third-party developers and dedicated X-Cart community members who have already translated their stores to other languages and who are ready to share or trade language packs they have. A place on the Internet where you can find a tailored language pack for your store is the X-Cart Community Forums at http://forum.x-cart.com/.

Adding Languages

Overview

Technically, adding a language to a store means that you create a new language either by cloning an installed language or by importing a tailored language pack, a CSV file with translated language variables.

When you create a new language without importing a tailored pack, the variables for the new language are taken from the default language for the Customer area. If some of the variables are broken or missing, X-Cart takes their values from the default language for the Admin area. If unsuccessful, the variables get the values of the English language pack. When you create a new language by importing a tailored language pack, the variables for the new language consecutively take their values from the default languages for the Customer and Admin areas, and from the English language pack. Finally, the existing variables get replaced with the values from the language pack that you import. This way of importing languages ensures that the new language will not have empty or broken variables if there were any in the language pack that you imported. For example, this may become an issue if you import a language pack for an earlier X-Cart version.

Adding a language

To add a language:

  1. In the Admin area, go to the Edit languages section (Administration -> Languages) and scroll down to the Add/Update language box.

    Managing languages 02.gif
  2. In the drop-down box Choose a language, select the name of the language that you want to add.
  3. If you are importing a tailored language pack, specify the delimiter type and the location of the import file.
    • In the drop-down box CSV delimiter, select the type of delimiter you used when preparing the import CSV file;
    • Specify the filename and the location of the import file.
      • If the file is located somewhere on the server, select Server as the source of the import file and enter in the CSV file is located on the server field an absolute path to the file;
      • If the file is located on your local computer, select Home computer as the source of the import file and use the Browse button to locate the file.
  4. Click the Add/Update language button.

After you have clicked on Add/Update language, the new language will be added to the store. X-Cart will display the Edit language box, which you can use to disable/enable the language, change the language charset and the language icon. If you edit any of the language options, remember to click the Apply button for changes to take effect.

Managing languages 03.gif

Below the Edit language box X-Cart will display another box Edit language entries, which you can use to edit some of the variables of the selected language.

Managing languages 04.gif

Setting Default Store Languages

Exporting Languages

Disabling Languages

Deleting Languages