I'm developing a custom module for my Magento installation (version 1.6.2.0). I registered a translation file for the module in the config.xml and started to add German translations. The module adds some new behavior to the Magento back end.
While doing the translation I noticed a strange behavior of Magento. Certain words don't get translated by Magento although a translation is provided in the module's csv file.
When I change the key to a different value, the translation works as expected, so Magento seems to see and read the cvs file.
At the moment I notice this behavior for the keys "City" and "Store".
Content of the csv file:
"City","Stadt"
"City1","Stadt"
I use the following line to translate the strings.
Mage::helper('mymodule')->__('City') // returns "City"
When I change the key to "City1" every thing works as expected.
Mage::helper('mymodule')->__('City1') // returns "Stadt"
After this I searched the German translation csv files (provided by the German Magento Community) for a translation for the key "City" and found one in the "adminhtml module".
Mage::helper('adminhtml')->__('City') // returns "Stadt"
So this also works as expected.
I don't know what I'm doing wrong. As I said the same behavior occurs for the string "Store".
Any ideas on this?
mymodule
? Magento usually falls back to other modules, if it cannot find an appropiate translation within the configured csv, so that could be the problem. – FlorianCity1
either. But that's not the case withCity1
the translation works. – Flo