Home > CMS Tutorial > WordPress > How to set Chinese in wordpress

How to set Chinese in wordpress

爱喝马黛茶的安东尼
Release: 2019-07-25 13:38:41
Original
14325 people have browsed it

How to set Chinese in wordpress

If you want to change the language of WordPress, such as converting the English version to the Chinese version, or converting the Chinese version to the English version, how should you do it? In fact, it is very simple. Open wp-config.php in the root directory of the website, and then search define('WPLANG' to quickly locate the language settings. For example, the default for the Simplified Chinese version is:

define('WPLANG', 'zh_CN');
Copy after login

If you want to change it to For the English version, just modify it to:

define('WPLANG', '');
Copy after login

Related recommendations: "WordPress Tutorial"

It should be noted that the official English version of WordPress does not include any language pack, nor That is, you cannot see the languages ​​folder in the /wp-content/ directory. Even if you set it to zh_CN, it will not take effect because there is no Simplified Chinese language package! So you must download the corresponding language version and unzip /wp- Upload the languages ​​folder (and the files in it) under the content/ directory to the /wp-content/ directory of your website.

WordPress Simplified Chinese official: http://cn.wordpress.org/

.

Versions in other languages ​​can be found here: http://codex.wordpress.org/WordPress_in_Your_Language

Note:

WordPress 4.0 and above, You can directly set the "site language" in the background-Settings-General, you no longer need to define define('WPLANG' in wp-config.php!!

The above is the detailed content of How to set Chinese in wordpress. 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