Managing Magento CSV Translation Files

localisationmodule

As time has passed, the Magento core team has added more and more default language packs to the

app/locale 

folder. Is there a canon way to manage your own translation files such that they don't interfere with future system upgrades? i.e. I want to change some labels in Magento, so I edit

app/locale/en_US/Mage_Sales.csv

directly. If we upgrade Magento, my changes will be wiped out. Is the theme locale feature enough for this? (does it handle module specific files, or just translate.csv). Or is it better to rewrite the translation models to load files from a different location? Or something else?

Best Answer

Try this.

To sum, specify an additional translation file under the core module's translation XPath and place your overriding CSV pairs in there.

<frontend>
    <translate>
        <modules>
            <Mage_Sales>
                <files>
                    <mr_storms_wicked_translations>Mage_Sales_Custom.csv</mr_storms_wicked_translations>
                </files>
            </Mage_Sales>
        </modules>
    </translate>
</frontend>
Related Topic