Magento - Change translation don't work

☆樱花仙子☆ 提交于 2019-12-13 14:29:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!