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');
If you want to change it to For the English version, just modify it to:
define('WPLANG', '');
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!