Hi everybody, my name is KaKa. I’m very glad to tell you about one of the most important parts of Magento – Multi-language on web-stores. This article is the final part of Magento basics and it is very helpful for you. So keep reading it 😉 !
In the e-commerce, it is avoidable that websites are accessed by a large number of people from different countries at the same time. So it is very necessary to develop multi-language for a website. And Magento supports you conduct this function on your web-store.
I. How to create a Magento multi-language site?
Definition: website, store and store view will be illustrated as below:

– Customers can see Store views which are representatives of stores. The differences between store views are wording, images, and/or design and language (store view is always equivalent to language).

– Behind a store view is a store; products which have a same root category. Stores on a website have same points including customer information, shopping cart, inventory, billing methods and shipping methods.

Steps to create multi-language:
– Download the language package > Copy to the folder app/locale or use magento connector to download.
– Create store (store view) that has store_code
System > ConfigGeneral > Locale OptionsLocale: Select store and then choose the language which has been downloaded. As in Magento default, the link to go to the store is
– If in the System > Config > Web > Url Options > Add Store Code to Urls. Afterwards select Default config and then choose Yes. The link to go to the store is:
For Magento site can run in website mode, we need to take the following steps:
– Link domain to the root category.
– Edit the file index.php: Add the code below:

switch($_SERVER['HTTP_HOST']) { case 'shoes.com':
	case 'www.shoes.com':
		$mageRunCode = 'shoes';
		$mageRunType = 'website';
	case 'hats.com':
	case 'www.hats.com':
		$mageRunCode = 'hats';
		$mageRunType = 'website';
Mage::run($mageRunCode, $mageRunType);

Add subdomain, subdirectories:
– For example: themes.magestore.com or magestore.com/themes
– Create a directory: themes directory
– Copy the file index.php and .htaccess from the root directory into themes directory and edit the file index.php:
– Change the line:

$mageFilename = 'app/Mage.php';


$mageFilename = '../public_html/app/Mage.php';

– Add before the line below:

Mage::run($mageRunCode, $mageRunType);

Two following lines:

$mageRunCode = themes';
$mageRunType = 'website';

II.How to use Magento translate classes and translate files
The translation function is Mage::helper(‘core’)->__()
This function call to the object Mage::getSingleton(‘core/translate’);
The process to conduct in this class:
– The corresponding CSV file will be loaded (in which locale the store is and which module the store is being called).
– String corresponds with input string which is returned.
III – Compare subdomains and subdirectories with SEO (the details are as the table below):

IV – Questions

Question: What is the load order of the multi-language files?

Answer: The order for the multi-language files to load is:

–  CSV in /app/locale

–  CSV in /app/design/<area>/<package>/<theme>/locale (theme folder translate)

–   Database (table core_translate)

Because the next load will overwrite the last load parts so the priority order is opposite to the load sequence above.

Thanks for your following.

Merry Christmas 🙂


Why Magestore? We believe in building a meaningful & long-term relationship with you.

1 Comment

  1. – Hi I´ve and live store: http:www.salelsol.com/shop/ and I just add another store view (english language).
    – I need point to all new created subdomain en.salelsol.com to this all new created store view.

Write A Comment