Magento 翻译失败

发布于 2024-12-20 22:17:21 字数 355 浏览 1 评论 0原文

我无法翻译短语“%s 已添加到您的购物车”。在magento中。这是在 php 控制器 (cartController.php) 中调用的消息。

我使用 csv 文件进行翻译,并多次检查它们是否有错误(缺少引号、错误的引号...),但翻译仍然无法正常工作。内联翻译似乎也是不可能的,因为没有显示翻译成功消息的选项。

我还检查了商店语言(设置为荷兰语)、区域设置配置以及通过代码他找到的语言,结果一切都很好,一切都很好。

有谁知道我应该采取哪些后续步骤来调查这个问题,甚至更好:有人知道这个问题的解决方案吗?我发现了很多像这样的帖子,但没有得到答复或没有给我答案。

还有一件事:是的,我清除了缓存和翻译;-)。

发射机

I have trouble translating the phrase "%s was added to your shopping cart." in magento. This is a message that is called in a php-controller (cartController.php).

I use csv-files for the translation and checked them multiple times for errors (missing quotes, wrong quotes, ...), but the translation still won't work. Translating inline seems also impossible as no option is shown to translate success-messages.

I also checked the store language (which is set to Dutch), locale configuration and via code what language he finds, this all turns out fine, everything is okay.

Does anyone know what next steps I should take to investigate this problem or even better: does anyone know a solution for this problem? I found many threads like this one, but unanswered or without an answer for me.

One more thing: Yes, I cleared my cache and translations ;-).

Tx

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

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

发布评论

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

评论(2

以酷 2024-12-27 22:17:21

尝试将translate.csv放入您的主题文件夹中:

(root)/app/design/frontend/(theme)/default/locale/nl_NL/translate.csv

并将您的翻译放在那里。

Try to put translate.csv into your theme folder:

(root)/app/design/frontend/(theme)/default/locale/nl_NL/translate.csv

And put your translation there.

灼痛 2024-12-27 22:17:21

检查你的文件 Mage_Checkout.csv 的编码

可能你有 ANSI 或 UTF-8,但它应该是“UTF-8 without BOM”,否则 Magento 在使用翻译文件时会遇到麻烦。

Check the encoding of your file Mage_Checkout.csv

Probably you have ANSI or UTF-8, but it should be "UTF-8 without BOM", otherwise Magento has troubles in using the translation file.

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