vtiger CRM 5.0.4汉化
一、中文包安装说明
1)安装英文版vtiger5.04;
2)下载中文包vtigercrm5[1].04中文包;
3)解压缩中文包;
4)拷贝include和modules到vtiger安装根目录下;
5)修改config.inc.php
第172行:
$languages = Array('en_us'=>'US English',);
改为:
$languages = Array('zh_cn'=>'Simplized Chinese','en_us'=>'US English',);
第179行:
$default_charset = 'ISO8859-1';
改为:
$default_charset = 'UTF-8';
第183行:
$default_language = 'en_us';
改为:
$default_language = 'zh_cn';
5)中文字体的问题
在vtiger CRM的Image\Canvas\Fonts目录下添加中文字体,例如simsun.ttf,然后修改fontmap.txt,添加一行:
Simsun,simsun.ttf
然后修改include\utils\GraphUntils.php
第42行:
case 'cn_zh':
改为
case 'zh_cn':
6)安装成功
二、常见出错
1、汉化后运行出现如下错误:
Warning: require(include/language/zh_cn.lang.php) [function.require]: failed to open stream: No such file or directory in C:\Program Files\vtigercrm5\apache\htdocs\vtigerCRM\include\utils\utils.php on line 317
Fatal error: require() [function.require]: Failed opening required 'include/language/zh_cn.lang.php' (include_path='.;C:\php5\pear') in C:\Program Files\vtigercrm5\apache\htdocs\vtigerCRM\include\utils\utils.php on line 317
2、原因分析
找不到默认语言包,一般是汉化语言包名称问题,需要核对清楚'zh_cn'与'zh-cn'及'zh_cn '单引号内是否有空格。
0 条留言
我要留言