dedecms 5.1 utf-8版本英文修改方法

本修改经过多次测试在 大部分国外空间都安装正常。
如果不会修改的,请下载我提供的dedecms5.1UTF-8英文版本 文章模块。已经修改好的下载地址:dedecms5.1-utf-8英文修改版本。
这次修改的主要部分:
1.文章翻页的英文化
2.生成文章地址去掉文章数据ID
3.改掉DEDECMS的提示窗口 改成英文。
4.更改转向提示为英文
5.搜索显示该成英文提示
6.页面的meta设置
1.翻页的英文化
include/inc_archives_view.php
include/inc_arclist_view.php
include/inc_arcsearch_view.php
下的修改主要是针对 文章列表页面 内容翻页 搜索页面翻译的 英文化。
依次用记事本打开以上三文件。
我们先打开include/inc_archives_view.php
依次找到
//获取上一篇,下一篇链接
//获得动态页面分页列表
//获得静态页面分页列表
这三处,把这三处下面出现的中文改成英文
打开include/inc_arclist_view.php
依次找到
//获取静态的分页列表
//获取动态的分页列表

这两处,把这两处下面出现的中文改成英文
打开include/inc_arcsearch_view.php
依次找到
//获取动态的分页列表

这一处,把这一处下面出现的中文改成英文
2.生成文章地址去掉文章数字ID
用记事本打开 include/inc_channel_unit_function.php
找到
$articleRule = str_replace("{pinyin}",GetPinyin($title)."_".$aid,$articleRule);
改成
$articleRule = str_replace("{pinyin}",GetPinyin($title),$articleRule);
简单的说就是去掉 ."_".$aid
然后在后台把 栏目的 高级选项里
文章命名规则:{typedir}/{pinyin}.html
3.改掉DEDECMS的提示窗口 改成英文。
这个必须用Dreamweaver编辑,不能用记事本编辑否则会出现后台空白的情况!
用Dreamweaver打开include/inc_functions.php
找到 ShowMsg 然后往下看。依次找到:
DedeCms 系统提示
DedeCms 提示信息:
如果你的浏览器没反应,请点击这里...
对应修改成
DedeCms Message
DedeCms Message:
If your browser is no response, please click here ...

4.更改转向提示为英文
用记事本打开 include/jump.html
依次找到:
正在转向: 请稍候...
内容简介:
TO:
对应修改成
TO:
Are turning to: Please wait ...
Brief Introduction:

5.搜索显示该成英文提示
用记事本打开 plus/search.php
依次找到:
服务器忙,请稍后搜索
你的关键词输入不合法!
你的信息中存在非法内容,被系统禁止![返回]
关键字长度必须要3-30字节之间!
对应修改成
Server is busy,please search later
You do not legally enter the keywords!
Your information in the illegal content,the system was prohibited! [Back]
Keyword length must be between 3-30 bytes!

6.页面的mate设置
这个主要是做摸板的时候注意不要掉了meta,这样每个页面的MATE信息都不一样。
首页和列表页面的meta可以自己在后台设置。而内容页面的MATE是根据内容自动截取的。
首页meta
<meta name="keywords" content="{dede:global name='cfg_keywords'/},dedecms">
<meta name="description" content="{dede:global name='cfg_description'/}dedecms">

列表页面meta
<meta name="keywords" content="{dede:field name='keywords'/}">
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}">

内容页面meta
<meta name="keywords" content="{dede:field name='keywords'/}">
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}">