Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

求助:首页My Wishlist那里无法翻译成中文
 
fffffffffffff
Jr. Member
 
Total Posts:  5
Joined:  2008-06-01
 

求助:首页My Wishlist那里无法翻译成中文。哪位高人帮忙解决一下

 
Magento Community Magento Community
Magento Community
Magento Community
 
Johnny Liu
Jr. Member
 
Total Posts:  4
Joined:  2008-06-03
 

我也想知道啊~
还有 Compare Products 也翻不出来

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

是系统不让转换还是不知道怎么翻成中文?
我测试了Inline translation,没问题。

 
Magento Community Magento Community
Magento Community
Magento Community
 
Johnny Liu
Jr. Member
 
Total Posts:  4
Joined:  2008-06-03
 

原来Compare product 只是漏翻译了… red face

这是我解决wishlist 语言显示不正常的方法
打开 template\wishlist\sidebar.phtml and
把 “My Wishlist” å’Œ “<a href="%s">%d Item(s)</a>” 分开,如下

<h4><?php echo $this->__('My Wishlist'?> <?php echo $this->__('<a href="%s">%d Item(s)</a>',
                
$this->helper('wishlist')->getListUrl(),
                
$this->helper('wishlist')->getItemCount()
            ) 
?></h4>

打开中文zh_CN下的 Mage_Wishlist.csv
然後加入一条新的翻译,如下

"<a href=""%s"">%d Item(s)</a>","<a href=""%s"">%d件商品</a>"
 
Magento Community Magento Community
Magento Community
Magento Community
 
fffffffffffff
Jr. Member
 
Total Posts:  5
Joined:  2008-06-01
 

谢谢Johnny ! 问题已经解决。 万分感谢!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top