search
HomeCMS TutorialDEDECMSHow to modify the English version of dedecms 5.1 utf-8

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

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

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;/}">

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;/}">

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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.