Adding a new language in Magento

Adding a new language in Magento

As anything in Magento adding a new language is something that requires a certain procedure which we will explain right now and for future reference.

Follow these easy steps and enjoy your multilingual site:

  • 1. Download the desired translation thru Magento connect via admin.
  • 2. Once installed Go to: System -> Manage Stores -> Create store view. Enter the data and save.
  • 3. Now go to: Configuration -> Current Configuration Scope (Select your language from the dropdown) and on the right side under “Locale options” choose the desired language.

Note: Be sure to clear the cache before trying to use your new language.

That’s it, now when you go to the frontend of the site, you’ll notice a dropdown menu allowing the language switching.

Did you clear the cache?

15
Top

Enjoyed this post?

Subscribe to our RSS Feed, Follow us on Twitter and spread it to your friends!

Author

Zeljko Prsa

Project Manager / Team Leader

Asides cursing all of the Internet Explorer browser family on a daily basis, Zeljko enjoys his job as a Magento Front-end developer for over two years now.

Other posts from this author

Discussion 15 Comments

Add Comment
  1. did all this and nothing! I get a language drop box on main page, the link works but it’s all in english. I went to app/local/ and opened some of them up and they are all eng, “eng” so I tried editing them manualy but when I upload my changed versions and view the site there are no changes. Any advice?
    Yes I cleared the cache, how do you do that excactly?

  2. Jayesh

    hi, unfortunately I was not able to install transelation extension. Its failed to install through magento connect manager. Can you clarify me

    thank you very much

  3. Tingu

    Unable to install transelation extension. Its failed to install through magento connect manager. Can you clarify me

  4. vas

    Hi,

    thanks but i cant download the translation extension.. can anyone provide me link…

  5. For those special times when Magento Connect doesn’t work try the following:

    1. Go to http://www.magentocommerce.com/langs
    2. Click on the “Select” link by the desired language
    3. It takes you to the translations page where you can choose the version and theme. Here you click on “Submit” button
    4. You are now at the language page and have the option to download the “Full package” via the link provided.

    Hope this helps.

  6. for displaying flags instead of the dropdown add this to your app/design/frontend/default/your_theme/layout/page.xml
    inside this block…

    ……….some code…………………………….
    ……………………..

    and comment out

  7. Is the same in the enterprise and community versions ? Could any one give me working advice about the difference between the two versions ?

  8. hi there,
    Anup could you please send me the code to display flags instead of dropdown.
    And if somebody can write the step by step procedure to create multilingual site.because everywhere i got onething that “just install translator”, to create multilingual site instead i m trying to find the exact procedure.I m totally confused wether i need to create category menu for each language or wether it will automatically trnaslate it to the current selected language.

    please anyone of you guys out there…plzzzz

  9. Ali Nasrullah

    place in the theme/template/header.phtml

    getChildHtml(‘store_language’) ?>

    and

    create a new file
    template/page/switch/
    flags.phtml

    getStores())>1): ?>

    __(‘Your Language’) ?>:

    getStores() as $_lang): ?>
    getId() == $this->getCurrentStoreId()) ? ‘selected=”selected”‘ : ” ?>
    <option style="background-image:url('getSkinUrl(‘images/flag_’.$_lang->getCode().’.gif’) ?>’);” value=”getCurrentUrl() ?>” >
    htmlEscape($_lang->getName()) ?>

    and in the page.xml where there is language.phtml replace it with flags.phtml

  10. wallvlvn
  11. When using Magento for 2 languages. do we add the categories in both languages or we just translations?

  12. Or you could use his code in app/design/frontend/default/[your_template]/template/page/switch/flags.phtml:

    getStores())>1): ?>

    getStores() as $_lang): ?>
    <a href="getCurrentUrl() ?>”><img src="getSkinUrl(‘images/flag_’ . $this->htmlEscape($_lang->getCode()) . ‘.png’) ?>” alt=”htmlEscape($_lang->getName()) ?>”/>

  13. Hello,

    how can I configure magento, that it won’t show default language code (just a base adress) in url. For examle for my default language it would generate this url -> http://www.e-diugonis.lt/nardymo-iranga.html, but for my second language -> http://www.e-diugonis.lt/ru/nardymo-iranga.html.

    Thank you for your help.

  14. A guide on how to get flags instead of a dropdown, would be awesome :-)

  15. If you are using a custom template (one that you made or bought) some other steps need to be done so it can show the same layout in all languages. You can check that out here: http://t.co/EayIQhFA

Add Your Comment

Please wrap all source codes with [code][/code] tags.
Top