Magento Resource | E-Commerce Generation Explorer

TAG | 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>


· ·

Theme Design by