我的Magento模板奇怪的是什么?

时间:2012-08-04 09:31:18

标签: magento translation

h1 html代码的客户登录页面是

<h1 class="translate-inline" 
translate="[{shown:'Create an Account',translated:'Create an  Account',original:'Create an Account',location:'Heading level 1',scope:'Mage_Customer'}]">
Create an Account
</h1>

并且有

<span class="translate-inline-title translate-inline" 
translate="[{shown:'Create New Customer Account',translated:'Create New Customer Account',original:'Create New Customer Account',location:'Page title',scope:'Mage_Customer'}]">
TITLE
</span>

body html代码下。

如果由echo $this->__()生成,我发现所有这些都会有无用的代码。如何删除无用的代码?

1 个答案:

答案 0 :(得分:2)

看起来Magento的inline translations已启用。您可以在System > Configuration > Developer > Translate Inline > Enabled for frontend

下的管理员中将其停用