【发布时间】:2011-12-06 18:09:47
【问题描述】:
Magento 使用一个系统来翻译模板文件中的文本:
$this->__('text to be translated.');
或
Mage::helper('modulename')->__('text to be translated.');.
这很好用。 但是当我将文本添加到 javascript 文件时,我不能使用这两种方法。
有没有办法对 javascript 文件的翻译做类似的事情?
【问题讨论】:
标签: javascript php magento translation