Back to Top

Translate Text Magento

Updated 13 March 2013

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

<frontend>
	<translate>
		<modules>
			<Webkul_Modulename>
				<files>
					<default>Translation.csv</default>
				</files>
			</Webkul_Modulename>
		</modules>
	</translate>
</frontend>

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

3. Use following code to translate it in frontend .

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

4. This is how your csv file should be .

“text to translate”,”texto a traducir”

Searching for an experienced
Magento Company ?
Find out More

and so on.

Enjoy.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home