Posts Tagged ‘ translate ’

How to Translate Text in Magento

1. Add the following code inside your custom module config.xml


2. Put Your Translation.csv inside app/locale/[your package]/

3. Use following code to translate it in frontend .

echo Mage::helper('modulename')->__('text to translate');

4. This is how your csv file should be .

“test to be translate”,”translating text”

and so on.


for more info visit mage-people