【发布时间】:2011-12-06 20:48:54
【问题描述】:
我有默认 page.xml。
我已经添加了
<block type="core/text" name="for_everyone">
<action method="setText" translate="text"><text>Some text!</text></action>
</block>
到
<block type="core/text_list" name="content" as="content" translate="label">
<label>Main Content Area</label>
</block>
我得到了这个:
<block type="core/text_list" name="content" as="content" translate="label">
<label>Main Content Area</label>
<block type="core/text" name="for_everyone">
<action method="setText" translate="text"><title>Some text!</title></action>
</block>
</block>
然后我为我的主题添加了两个文件:
app/design/frontend/default/default/locale/en_US/translate.csv
"Some text!","Some text!"
和
app/design/frontend/default/default/locale/fr_FR/translate.csv
"Some text!","un text!"
但每次我运行任何语言时,我都会看到“一些文本!”。同时为网站选择的语言使用正确。例如,catalog.xml 中的字符串完美翻译:
<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">
<action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>
<action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>
</block>
我也尝试过使用类似的东西和其他标签:
<action method="setText" translate="title"><text>Some text!</title></action>
有人知道问题出在哪里吗?
【问题讨论】:
标签: magento-1.5 magento