Magento - 更改翻译不起作用

发布于 2024-11-26 18:38:10 字数 522 浏览 1 评论 0 原文

我不想更改字符串:

$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);

位于 core/Mage/Customer/controllers/AccountController.php 第 345 行

我已经更改了翻译(使用 Notepad++):/design /frontend/default/my_theme/locale/de_DE/translation.csv 但它不起作用。此文件中翻译的其他任何内容都工作正常。

有什么想法吗?提前致谢!

丹尼

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦太阳 2024-12-03 18:38:10

翻译会被缓存,因此您需要清除系统>中的缓存。缓存管理或清空var/cache目录的内容。

另一种方法是使用内置的内联翻译工具进入 Magento。

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.

羁客 2024-12-03 18:38:10

这是一个奇怪但微不足道的问题,仍然在 1.9.2.1

将原始字符串和翻译后的字符串(完整的翻译行)放入您首选语言包文件夹中的 Mage_Customer.csv(而不是 Mage_Adminhtml.csv)中,翻译将起作用。

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.

对你再特殊 2024-12-03 18:38:10

bin 文件夹中运行 php magento cache:flush CLI 命令。正如 @clockworkgeek 建议的那样,这在终端的 magento 2 中执行相同的操作。

In bin folder run php magento cache:flush CLI command. That does the same thing in magento 2 from terminal as @clockworkgeek suggested.

枉心 2024-12-03 18:38:10

尝试在“系统”->“配置”->“常规”和“区域设置选项”选项卡上设置区域设置选项默认值,并使用您的语言翻译设置区域设置

Try to set locale option default on System->Configuration->General and on tab Locale Option set locale with your language translation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文