Source : How to add translations for new words in Magento?.
For this:
|
<?php echo Mage::helper('catalog')->__('Text here'); ?> |
app/locale/{lang_ISO}/Mage_Catalog.csv
|
"Text here","Translation here" |
For this:
|
<?php echo $this->__('Text here'); ?> |
app/design/frontend/{interface}/{theme}/locale/{lang_ISO}/translate.csv
|
"Text here","Translation here" |
Or In your theme folder :
/locale/fr_FR/translate.csv
|
"Inspiration","Your French Translation" |
Passer un paramètre (comme un libellé produit) dans la locale (source : PHP Manual > String Functions) :
|
<?php echo $this->__('Specifications for %s', $_helper->productAttribute($_product, $_product->getName(), 'name')); ?> |
app/design/frontend/{interface}/{theme}/locale/{lang_ISO}/translate.csv
|
"Specifications for %s","Spécifications de %s" |