汉化Joomla! 1.5
No comments1,使用我之前写的一篇文章里介绍的方法来安装好官方英文版本
2,复制joomla系统目录language下的en-GB为zh-CN
把zh-CN目录下的所有以en-GB开头的文件均重命名为以zh-CN替换en-GB 开头
3,修改language/zh-CN/zh-CN.xml文件,参考如下:
<?xml version=”1.0″ encoding=”utf-8″?>
<!– $Id –>
<metafile version=”1.5″ client=”site” >
<name>Simplified Chinese (China)</name>
<tag>zh-CN</tag>
<version>1.5.0</version>
<creationDate>2005-10-30</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></description>
<metadata>
<name>Simplified Chinese (China)</name>
<tag>zh-CN</tag>
<rtl>0</rtl>
<locale>zh_CN.utf8, zh_CN.UTF-8, zh_CN, zh, simplified_chinese</locale>
<winCodePage>cp936</winCodePage>
<backwardLang>simplified_chinese</backwardLang>
<pdfFontName>freesans</pdfFontName>
</metadata>
<params />
</metafile>
4,翻译language/zh-CN目录下以.ini为结尾的文件
在这些文件中,它正文的绝大多数行的格式都是”标识=显示文字”
找到要改为中文显示的相关文件/行,或全部文件,翻译成中文,并保存为utf8编码
5,在系统后台,把前台的默认语言设置为Simplified Chinese
以上方法在Etch 4.1+mysql 5.0+apache 2.2+php 5.2环境中测试成功
注:zh-CN.xml文件中的<pdfFontName>freesans</pdfFontName>是为PDF输出作准备的
若要让PDF输出支持中文,则需上传中文字体到language/pdf_fonts目录,并在这行里修改字体名称
Saturday, January 26th, 2008 at 9:04 am and is filed under Note, Web. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.