織夢dedecms 5.1 utf-8版本英文修改方法_DedeCms教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
織夢dedecms 5.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)'/}">
僅供大家學習參考,希望對你有所幫助。
相關DedeCms教程:
- DedeCMS 批量取消審核文檔的實現方法
- 織夢dedecms自定義表單,“必填項”設置方法
- 織夢DEDECMS{dede:freelist/}列表調用增加排序方式
- 織夢dedecms模板制作時,循環遞增autoindex使用方法整理
- dedecms中一問一答式調用問答模塊問與答簡介調用問答系統代碼
- dede審核時間與更新文章發布日期同步
- 如何在DedeCms 標記中運行PHP
- 徹底解決dedecms專題內容的介紹文字最多250個字的問題
- dedecms的首頁、內容頁、列表頁中 動態JS調用評論數
- dedecms個人空間默認的個人書簽刪除方法
- 織夢DedeCMS欄目二級域名綁定方法
- DedeCms去掉欄目頁當前位置導航最后的分隔符“>”