dedecms 5.1 How to modify the utf-8 version in English?
This modification has been tested many times in most foreign countries The space is installed normally.
If you don’t want to modify it, please download the dedecms5.1UTF-8 English version article module I provided. The modified download address: dedecms5.1-utf-8 English modified version.
Recommended study: 梦Weavercms
The main part of this modification:
1. English for turning pages of the article Culture
2. Generate the article address and remove the article data ID
3. Change the prompt window of DEDECMS to English.
4. Change the redirect prompt to English
5. Search and display the English prompt
6. Meta settings of the page
1. Page turning The modifications under English version
include/inc_archives_view.php include/inc_arclist_view.php include/inc_arcsearch_view.php
are mainly for the English version of the translation of the article list page content page search page.
Open the above three files with Notepad in sequence.
We first open include/inc_archives_view.php
Find these three places in sequence
//获取上一篇,下一篇链接 //获得动态页面分页列表 //获得静态页面分页列表
, and change the Chinese that appears under these three places into English
Open include/inc_arclist_view.php
Find in turn
//Get the static paging list
//Get the dynamic paging list
These two places, Change the Chinese that appears below these two places into English
Open include/inc_arcsearch_view.php
Find in turn
//Get the dynamic paging list
Here, change the Chinese that appears below this to English
2. Generate the article address and remove the article numeric ID
Use Notepad to open include/inc_channel_unit_function.php
Find
$articleRule = str_replace("{pinyin}",GetPinyin($title)."_".$aid,$articleRule);
Change to
$articleRule = str_replace("{pinyin}",GetPinyin($title),$articleRule);
Simply put, remove."_".$aid
Then go to the advanced options of the column in the background
Article naming rules: {typedir}/{pinyin}.html
3. Change the prompt window of DEDECMS to English.
This must be edited with Dreamweaver, not Notepad, otherwise the background will be blank!
Use Dreamweaver to open include/inc_functions.php
Find ShowMsg and look down. Find in turn:
DedeCms System prompt
DedeCms Prompt message:
If your browser does not respond, please click here...
Corresponding modification Cheng
DedeCms Message DedeCms Message: If your browser is no response, please click here ...
4. Change the redirect prompt to English
Open include/jump.html with Notepad
Find in sequence:
Redirecting: Please wait a moment Wait...
Content introduction:
TO:
correspondingly modified to
TO:
Are turning to: Please wait ... Brief Introduction:
5. Search shows this Tips in English
Open plus/search.php with Notepad
Find in sequence:
The server is busy, please search later
your keywords The input is illegal!
Your information contains illegal content and is banned by the system! [Return]
The keyword length must be between 3-30 bytes!
Correspondingly modified to
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. Page mate settings
This is mainly to be careful not to lose meta when making prototypes, so that the MATE information of each page is no the same.
The meta of the home page and list page can be set by yourself in the background. The MATE of the content page is automatically intercepted based on the content.
Homepage meta
<meta name="keywords" content="{dede:global name='cfg_keywords'/},dedecms"> <meta name="description" content="{dede:global name='cfg_description'/}dedecms">
List page meta
<meta name="keywords" content="{dede:field name='keywords'/}"> <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}">
Content page meta
<meta name="keywords" content="{dede:field name='keywords'/}"> <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}">
The above is the detailed content of How to modify the English version of dedecms 5.1 utf-8. For more information, please follow other related articles on the PHP Chinese website!