[英]Magento: translations in emails template not working
It seems to be translation in Abandoned Cart Emails (Template master) is not working.似乎是废弃购物车电子邮件(模板母版)中的翻译不起作用。
When I try to add product to cart, I have special rule, which sends email to user.当我尝试将产品添加到购物车时,我有一个特殊的规则,即向用户发送电子邮件。
In template of this email I have like this:在这封电子邮件的模板中,我有这样的:
{{block type="tm_abandoned/checkout_cart_totals" quote="$quote" history="$history" template="tm/abandoned/email/items/totals.phtml"}}
{{block type="tm_abandoned/checkout_cart_totals" quote="$quote" history="$history" template="tm/abandoned/email/items/totals.phtml"}}
totals.phtml
call rewrited renderTotals()
.totals.phtml
调用重写了renderTotals()
。 In English version - all OK, I see english words in totals block,which is OK.在英文版中 - 一切正常,我在总计块中看到英文单词,这很好。
But in German version I see English version again, despite of this de_DE
locale is there and translation's csv is provided.但是在德语版本中,我再次看到了英语版本,尽管存在
de_DE
语言环境并且提供了翻译的 csv。
No idea what I'm doing wrong.不知道我做错了什么。
CSV Translation will not work for email templates. CSV 翻译不适用于电子邮件模板。 Just copy all of the email templates from en_us to your locale (de_DE) then translate templates as per your needs.
只需将所有电子邮件模板从 en_us 复制到您的语言环境 (de_DE),然后根据您的需要翻译模板。 Also keep in mind that dynamic variable which are coming from php code will automatically be translated by csv.
还要记住,来自 php 代码的动态变量将被 csv 自动转换。 Thanks.
谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.