测试安装joomla! 1.5版本时发现只有繁体中文支持
而简体中文却不知所踪,没办法,自己动手吧
查看各安装文件,1.5版本已经是使用utf8编码
所以想到只要在安装过程中提供简体中文信息即可了
在installation/language目录下复制en-GB文件夹为zh-CN
重命名zh-CN目录下的en-GB.ini、en-GB.xml文件为zh-CN.ini、zh-CN.xml
然后使用文本编辑器把打开zh-CN.xml文件,修改成以下内容:
<?xml version=”1.0″ encoding=”UTF-8″?>
<metafile version=”1.5″ client=”installation”>
<name>Simplified Chinese (China)</name>
<version>1.5 Stable</version>
<creationDate>1/23/2008</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<copyright>Copyright (C) 2005 – 2008 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>Simplified Chinese language file for web installer</description>
<metadata>
<name>Simplified Chinese (China)</name>
<tag>zh-CN</tag>
<rtl>0</rtl>
<locale>zh_CN.UTF-8, zh_CN.utf8, zh, zh_CN, simplified_chinese</locale>
<winCodePage>cp936</winCodePage>
<backwardLang>simplified_chinese</backwardLang>
</metadata>
<params />
</metafile>
安装时要把数据库的编码设为utf8_general_ci
原因是系统默认使用的就是这个编码
若要使用像utf8_unicode_ci的其它编码
则需修改installation/sql/mysql/joomla.sql文件,让它们保持一致
经过以上处理,即可以输入、保存、显示简体中文了
此方法在Etch 4.1+mysql 5.0+apache 2.2+php 5.2环境中测试成功
若要使用更简单更彻底的办法,则可直接使用白站长汉化的简体中文安装包