TopLinks被剥夺在Magento

时间:2012-04-10 04:04:55

标签: magento

我正在使用blank_seo语言包的Magento ES_ES主题的修改版本。

似乎topLinks块正在剥离文本,从而遗漏了有意义的信息。在这种情况下,我的图表中的文章数量:

注意应该有(rtículos)

之类的(4 artículos)

enter image description here

这来自frontend/default/blank_seo/template/page/template/links.phtml模板文件。

enter image description here

这是:

<?php $_links = $this->getLinks(); ?>
<?php if(count($_links)>0): ?>
<ul class="links"<?php if($this->getName()): ?> id="<?php echo $this->getName() ?>"<?php endif;?>>
    <?php foreach($_links as $_link): ?>
    <li<?php if($_link->getIsFirst()||$_link->getIsLast()): ?> class="<?php if($_link->getIsFirst()): ?>first<?php endif; ?><?php if($_link->getIsLast()): ?> last<?php endif; ?>"<?php endif; ?> <?php echo $_link->getLiParams() ?>><?php echo $_link->getBeforeText() ?><a rel="nofollow" href="<?php echo $_link->getUrl() ?>" title="<?php echo $_link->getTitle() ?>" <?php echo $_link->getAParams() ?>><?php echo $_link->getLabel() ?></a><?php echo $_link->getAfterText() ?></li>
<?php endforeach; ?>

所以我的第一个推论是$_link->getLabel()正在删除文本(然后是$_link->getTitle())。

所以第一个问题是如何禁用getLabel() 中的字符串剥离?

但是也许这不会发生,而另一件完全不同的事情可能会发生,然后我的理解(与语言包有关吗?)

在这种情况下,我想知道是否有人在西班牙语语言包中遇到过这个问题,如何解决这个问题?

三江源

1 个答案:

答案 0 :(得分:0)

在翻译csv文件( app / locale / es_ES / Mage_Checkout.csv )中,检查翻译字符串是否正确,它应该是:"My Cart (%s items)","Mi carrito (%s artículos)"
我在language package检查了它是否正确,您在哪里获得翻译? (我只是要求通知作者)

相关问题