Magento缺少翻译
这是一个非常简单的问题:为了翻译这个,我需要改变什么??它在什么地方被硬编码了吗?数据库内部 下面的代码创建此选项卡,可在以下文件中找到Magento缺少翻译,magento,zend-framework,magento-1.9,Magento,Zend Framework,Magento 1.9,这是一个非常简单的问题:为了翻译这个,我需要改变什么??它在什么地方被硬编码了吗?数据库内部 下面的代码创建此选项卡,可在以下文件中找到app\design\frontend\rwd\default\template\catalog\product\view。phtml@175: <div class="product-collateral toggle-content tabs"> <?php if ($detailedInfoGroup = $this->ge
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->\uuuu('recurtive Profile')
模式。Myapp/locale/pt\u BR/Mage\u Sales.csv
已具有键/值“定期配置文件”、“性能记录”
这是在Magento 1.9实例中运行的定期配置文件产品的页面。查找
app/locale/pt_BR/Mage_Sales.csv
会有类似于
“定期配置文件”、“性能文件重复”
如果该文件不存在,请从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->\u u(…)
,并检查.csv文件中的本地化是否正确。还要确保模板中的文本以本地化方式包装call@scrowler模板似乎没有使用本地化调用:/Any suggestion?用tks包装以供评论,但您的建议似乎无法解决问题。我在问题中添加了更多的评论。