将Magento后台汉,有两种方法. 打开/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php文件, 找到几个用来显示的代码,替换成如下所示: 1.将这行代码: $item['text'] = $node->getAttributeGroupName(); 替换成: $item['text'] = $this ->__($node->getAttributeGroupName()); 2. 'text' => $child->getAttributeCode(), 替换成: 'text' => $this->__($child->getAttributeCode()), 3. 'text' => $child->getAttributeCode(), 替换成: 'text' => $this->__($child->getAttributeCode()),
$child->getFrontendLabel()即获取该属性的标签值,而不是原来的code值
这是将后台部分的英文转化成中文的方法。
方法二: 还有一种就是将 选择 栏 修改为只有中文和英文的方法: 打开根目录下/lib/Zend/Locale/Data/zh.xml文件: 在大概640行找到territories标签,可以看到这个标签内部包含了一长串国家列表,把所有的territory标签全部注释掉,只提取出中国和美国
<territories>
<territory type="CN">中国</territory>
<territory type="US">美国</territory>
<!--alex
<territory type="001">世界</territory>
<territory type="002">非洲</territory>
<territory type="003">北美洲</territory>
<territory type="005">南美洲</territory>
。。。。。
。。。。。
。。。。
<territory type="ZM">赞比亚</territory>
<territory type="ZW">津巴布韦</territory>
<territory type="ZZ">未知或无效地区</territory>
-->
</territories>
清除缓存,现在,在中文状态下,后台的下拉框你将只看到这两个选项,不过当你切换为英文后下拉框又变成一长串了,所以我们还需要对/lib/Zend/Locale/Data/en.xml做相似的处理
<territories>
<territory type="US">United States</territory>
<territory type="CN">China</territory>
<!--alex
<territory type="001">World</territory>
<territory type="002">Africa</territory>
。。。。。。 。。。。 清除缓存。
方法三:
1下载中文汉化包
Magento 1.2.1.2 简体中文语言包 |

ecshop蓝色冰爽妆品模板
人气:611
ecshop仿活力达保健品网|保
人气:749
ecshop仿凡客2011最新版|精品
人气:801
ecshop书店商城模板
人气:647
ecshop仿优雅100家纺商城模
人气:681
ecshop 运费查询 不同的地方
人气:2358