Magento – Translate.csv Failed to Overwrite Module Translation

localisation

I got a problem with Magento translation in my translate.csv, because it does not work. It should be easy as all tutorials saying.

I had download the package/module translation put into
\app\locale\xx_XX folder and create own translate.csv file in *

\app\design\frontend\[theme]\default\locale\xx_XX

folder.

Some word get the translation was giving priority to the module .csv not to my translate.csv. I cleared all cache files but to no avail.

For instance:

module Mage_Customer.csv: “Fax”,"Faks"
translate.csv: “Fax”,"Fax"

Problem: In the customer account page, it always displayed “Faks” instead of “Fax” which is not I expected.

Did I miss out something? Fyi, im using magento vers 1.7.0.2 CE.

Thank you in advance.

Best Answer

I found this old topic, and later found a solution: when the same string exists in multiple module translation files, then Magento will scope it, by default with '::'. So you also have to create separate translation strings for all those scopes in your translation.csv

"Mage_Customer::Fax","Fax"
"Mage_Checkout::Fax","Fax"

And for all the other modules in which "Fax" appears (and you care to translate differently).

Related Topic