Translations

Update: Translations Specific To Your Magento Theme

May 19, 2011

I recently wrote an article explaining how to add arbitrary translations to your Magento site using an empty plugin to allow you to attach a translations csv file. You can read the original here: [Custom translations file in Magento][1] Anyway, this is all well and good if you are adding text to your plugin or suite of Magento plugins that need to be translated. Of course, if this is the case then you already have a plugin to put the translations in but hopefully my post explains how that is done.

Custom translations file in Magento

Feb 25, 2011

It is very helpful to create a single translation file for your magento template to include any words or phrases that you add to the basic templates. Simply create an empty module (create a folder under app/code/local/[yourcompany]/[yourmodule]) and then add a subfolder etc and create a config.xml which should contain the following. <?xml version="1.0" encoding="utf-8"?> <config> <modules> <translations> <version>1.0.0</version> </translations> </modules> <frontend> <translate> <modules> <translations> <files> <default>swn_translations.csv</default> </files> </translations> </modules> </translate> </frontend> <adminhtml> <translate> <modules> <translations> <files> <default>swn_translations.csv</default> </files> </translations> </modules> </translate> </adminhtml> </config> Make sure your module is enabled (see [Creating your own module][1]).