Magento Resource | E-Commerce Generation Explorer



Small tips for multi-language translation

Many people know, on the /app/locale/language pack folder, you can add translation which you want into the .csv files (for example, mage_page.csv).

But, sometime, we added/changed something on the .csv, but nothing happen.

Especially the words which you add/edit on the template files.

What is wrong?

If you want some word can automatic translate, you need write them as PHP FORMAT, not directly writing.

For example, you add one line in the homepage…

<h1>i am homepage</h1> this word can show on the page, but can not translate by Magento.

you must write word like below:

<h1><?php echo $this->__(‘i am homepage‘) ?></h1>


· ·


  • hotspot · 13/02/2010 at 22:05

    Thanks, just what i needed!!!!!!!!
    Been spending a lot of hours try to find a solution.

  • many · 21/05/2010 at 21:54

    Tahnks for this help, i have been looking for this solution for the past 2 days

  • Micky · 11/03/2011 at 16:29

    I’ve tried this and nothing works:( Do you have any ideea if this is because I’m putting the translation in the wrong .csv file?


  • jawad · 15/04/2011 at 23:05

    i have trouble i hope you have solution
    __(‘Description’) ?> this working fine but i want to translate this code please help me


Leave a Reply



Theme Design by