Home > CMS Tutorial > DEDECMS > body text

How to modify the English version of dedecms 5.1 utf-8

藏色散人
Release: 2019-12-18 09:54:29
Original
2218 people have browsed it

How to modify the English version of dedecms 5.1 utf-8

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
Copy after login

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

//获取上一篇,下一篇链接 
//获得动态页面分页列表 
//获得静态页面分页列表
Copy after login

, 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);
Copy after login

Change to

$articleRule = str_replace("{pinyin}",GetPinyin($title),$articleRule);
Copy after login

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 ...
Copy after login

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:
Copy after login

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!
Copy after login

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=&#39;cfg_keywords&#39;/},dedecms"> 
<meta name="description" content="{dede:global name=&#39;cfg_description&#39;/}dedecms">
Copy after login

List page meta

<meta name="keywords" content="{dede:field name=&#39;keywords&#39;/}"> 
<meta name="description" content="{dede:field name=&#39;description&#39; function=&#39;html2text(@me)&#39;/}">
Copy after login

Content page meta

<meta name="keywords" content="{dede:field name=&#39;keywords&#39;/}"> 
<meta name="description" content="{dede:field name=&#39;description&#39; function=&#39;html2text(@me)&#39;/}">
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!