Monday, October 21, 2013

How to install a new language in magento

  1. Go to http://www.magentocommerce.com/ and in the search field type the  name of a new language pack, e.g. ‘Italian language pack’ and click the magnify glass.

  2. Wait till the results show up. Click the link that says Magento Community Modules – Italian (Italy) Language Pack

  3. On the next page, click Install Now. Check “I agree to the extension license agreement” and click Get Extension Key. You should be registered on the site to follow these steps.

  4. When you are logged in, click the “Select key” button. It will highlight the URL which you will to copy.

magento_new_language_installing_1


 


  1. Log into your Magento admin panel and go to the top menu System -> Magento Connect -> Magento Connect Manager.

magento_new_language_installing_2


 


  1. It will ask  you to re-login with the same details used for the  admin panel.

  2. On the next page, under Extensions -> Install New Extensions -> Paste extension key to install paste the url you copied and click Install. Then click Proceed.

magento_new_language_installing_3


 


  1. This will install the language package for you. When you see the “cache cleaned successfully” message, open the Magento dashboard page again.

magento_new_language_installing_4


 


  1. Go to System -> Manage Stores.

magento_new_language_installing_5


 


  1. Click Create Store view

magento_new_language_installing_6


 


  1. Fill all the fields in like this:

magento_new_language_installing_7 (1)


  1. Click Save Store View. You will see the new store view added to the list

  1. Go to the top menu System -> Configuration.

magento_new_language_installing_9


 


  1. From the Current Configuration Scope on the left select Italian.

magento_new_language_installing_10


 


  1. Under General -> Locale Options -> Locale select Italian (Italy).

magento_new_language_installing_11


 


  1. Click Save Config.

  2. Go to the top menu System -> Design.

magento_new_language_installing_12


 


  1. Click Add Design Change at the top right.

  2. Under General Settings select Italian for Score and your current theme for Custom Design.

magento_new_language_installing_13


 


    1. Click Save.

    2. Clear Magento cache and open the front page of your site. Select the new language from the language box.

    3. You template  may have custom CMS blocks that you will need to re-create for the new language layout. Go to CMS -> Static Blocks -> Add New Block and re-create the exiting custom blocks like Footer Links, Footer list 1, Footer list 2, Custom tab, header-links etc (depending on your theme). The code can be taken from the existing blocks and changed manually.

    4. To avoid the ‘___from_store’ query string  from  the urls when you switch a different language, in/app/design/frontend/default/template/page/switch/languages.phtml find line 41 and change it from:



echo $_lang->getCurrentUrl()

 




To:




echo $_lang->getCurrentUrl(false)

 




Then go to System -> Configuration -> General -> Web in your Magento admin. Then Options -> Add Store Code to Urls -> Yes.


 


 



How to install a new language in magento

No comments:

Post a Comment