【发布时间】:2023-03-03 16:36:01
【问题描述】:
这是一个非常简单的问题:我需要改变什么才能翻译这个??它在某处硬编码吗?内部数据库?
下面的代码创建了这个标签,可以在这个文件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 已经拥有"Recurring Profiles","Perfis Recorrentes" 的键/值。
这是在 Magento 1.9 实例中运行的定期配置文件产品的页面。
【问题讨论】:
-
还要确保模板中的文本包含在本地化调用中
-
@scrowler 模板似乎没有使用本地化调用:/ 有什么建议吗?
-
包裹在 __('text here')
标签: magento zend-framework magento-1.9