Magento 缺少翻译

Magento missing translation

这是一个非常简单的问题:我需要更改什么才能翻译这个??它是在某处硬编码的吗?内部数据库?

下面的代码创建了这个标签,可以在这个文件中找到 app\design\frontend\rwd\default\template\catalog\product\view.phtml@175:

<div class="product-collateral toggle-content tabs">
    <?php if ($detailedInfoGroup = $this->getChildGroup('detailed_info', 'getChildHtml')):?>
        <dl id="collateral-tabs" class="collateral-tabs">
            <?php foreach ($detailedInfoGroup as $alias => $html):?>
                <dt class="tab"><span><?php echo $this->escapeHtml($this->getChildData($alias, 'title')) ?></span></dt>
                <dd class="tab-container">
                    <div class="tab-content"><?php echo $html ?></div>
                </dd>
            <?php endforeach;?>
        </dl>
    <?php endif; ?>
</div>

它不遵循 $this->__('Recurring Profile') 模式。我的 app/locale/pt_BR/Mage_Sales.csv 已经有了 key/value "Recurring Profiles","Perfis Recorrentes".

这是 Magento 1.9 实例中定期配置文件产品 运行 的页面。

向上看 app/locale/pt_BR/Mage_Sales.csv 会有类似的东西 "Recurring Profiles","Perfiles Repetitivos"

如果文件不存在,请从 app/locale/en_US/Mage_Sales.csv 复制文件并替换为您想要的翻译。

谢谢@scrowler。 Magento 缺少正确的本地化方法调用。 app\design\frontend\rwd\default\template\catalog\product\view.phtml@175 处的代码应更改为:

<div class="product-collateral toggle-content tabs">
    <?php if ($detailedInfoGroup = $this->getChildGroup('detailed_info', 'getChildHtml')):?>
        <dl id="collateral-tabs" class="collateral-tabs">
            <?php foreach ($detailedInfoGroup as $alias => $html):?>
                <dt class="tab"><span><?php echo $this->escapeHtml($this->__( $this->getChildData($alias, 'title'))) ?></span></dt>
                <dd class="tab-container">
                    <div class="tab-content"><?php echo $html ?></div>
                </dd>
            <?php endforeach;?>
        </dl>
    <?php endif; ?>
</div>

刚刚添加 $this->__(...) 并检查 .csv 文件中的本地化是否正确。