How to translate themes and plug-ins into Chinese- Wordpress Tutorial

Chinese Wordpress theme and plug-ins.

The localization of WordPress themes and plug-ins. We are Chinese WPS Hide Logn Plug ins are examples.

Software:

Environmental Science:

Locally built Wordpress site, and installed and used the plug-in "WPS Hide Logon"

怎么汉化、翻译主题和插件? - wordpress教程-Npcink
怎么汉化、翻译主题和插件? - wordpress教程-Npcink

Install WordPress website building program locally on the computer

怎么汉化、翻译主题和插件? - wordpress教程-Npcink
怎么汉化、翻译主题和插件? - wordpress教程-Npcink

Wp chinese yes - Automatic Chinese WordPress plug-in package

 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

Tutorial Start:

Open the software Poedit and select "Create New Translation"

 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

Select a file path:

PHP installation folder

PHP/Tutorial\ WWW \wp-content\plugins\wps-hide-login\languages

 How to translate themes and plug-ins into Chinese- Wordpress Tutorial
 How to translate themes and plug-ins into Chinese- Wordpress Tutorial
 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

After opening, it is like this:

 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

We translated one by one. Of course, there are some matters that need attention in the process of translation, but they are not the theme of this time, just mentioned here. Don't move the colored words

You can first translate 5, and then refresh them to see if they have any effect.

After translation, we save:

 How to translate themes and plug-ins into Chinese- Wordpress Tutorial
 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

Change the name to: wpserveur-hide-login-zh_CN

When we save, two files will be generated, and the names will be changed.

If it does not take effect, go to the next step:

Find the "wp config. php" file in the WWW folder and open it with Notepad++,

 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

Add at the bottom of the document:

 define ('WPLANG', 'zh_CN');
 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

Save and exit.

We can refresh the local site to see the effect. As shown in the figure:

 How to translate themes and plug-ins into Chinese- Wordpress Tutorial

Key points:

  1. The file address where Poedit opens the file:
  2. PHPTutorial\WWW\wp-content\plugins\wps-hide-login\languages
  3. Open file name: wpserveur-hide-login.pot
  4. File location opened with Notepad++: PHPTutorial\WWW
  5. Open file name: wp-config.php
  6. Saved and generated after localization Two The document name must be changed to:
  7. wpserveur-hide-login-zh_CN

My Chinese documents

Extraction code: None
Decompression code: None

Download the screenshot in the article:

[zrz_file link=" https://n.getimg.net/www/2018/10/1b294efb5f8164.zip "Name=" Screenshot "code=" "]

Related links:

Question:

Cannot display Chinese effect, please try this format:

wpserveur-hide-login-zh_CN.po      wpserveur-hide-login-zh_CN.mo

course

How to prevent whitespace in WordPress user name- WordPress Tutorial

2018-7-13 18:30:02

course

How to modify the file upload size of the background media library- WordPress Tutorial

2018-7-18 7:30:35

⚠️
Some codes and tutorials on Npcink come from the Internet, and are only for netizens to learn and exchange. If you like this article, you can Attach original link Reprint at will.
No intention of infringing your rights, please send an email to 1355471563#qq.com Or click on the right Private message: Muze feedback, we will deal with it as soon as possible.
0 replies A Author M administrators
    There is no discussion yet. Tell me your opinion
Personal Center
Shopping Cart
Coupon
Sign in today
There are new private messages Private Message List
search