问题
I wan't to change the string:
$message = $this->__('There is already an account with this email address. If you are sure that it is your email address, <a href="%s">click here</a> to get your password and access your account.', $url);
located in the core/Mage/Customer/controllers/AccountController.php on line 345
I've changed the translation (with Notepad++) in: /design/frontend/default/my_theme/locale/de_DE/translation.csv but it's not working. Anything else, translated in this file, is working fine.
Any ideas? Thanks in advance!
Danny
回答1:
Translations are cached so you will need to clear the cache in System > Cache Management or by emptying the contents of var/cache directory.
Another way is to use the inline translation tool that is built into Magento.
回答2:
It's a strange but trivial problem still in 1.9.2.1
Put the original string and the translated one (the complete translation line) into Mage_Customer.csv (instead Mage_Adminhtml.csv) in your preferred language pack folder and the translation will work.
回答3:
In bin folder run php magento cache:flush CLI command. That does the same thing in magento 2 from terminal as @clockworkgeek suggested.
回答4:
Try to set locale option default on System->Configuration->General and on tab Locale Option set locale with your language translation
来源:https://stackoverflow.com/questions/6857512/magento-change-translation-dont-work