The following column WordPress Getting Started Tutorial will introduce you to the method of making a complete small version of the Chinese version of WordPress. I hope it will be helpful to friends in need!
WordPress official pure Chinese version and English version have different language file selections when installing. The pure Chinese version will be modified for Chinese and is more suitable for Chinese sites. WordPress will update the current version of the program from time to time, commonly known as minor version updates. For example, the current major version of WordPress is 4.9, and the minor version update version numbers are: 4.9.1, 4.9.2, 4.9.3... The official only provides a complete installation package in English. The Chinese version of WordPress is often not updated in time. You can simply make a complete small version of the Chinese version of WordPress installer yourself.
Taking WordPress version 4.9.2 as an example, first download the full versions of WordPress 4.9.3 English and 4.9.1 Chinese respectively:
4.9. 2 English full version: https://wordpress.org/download/
4.9.1 Chinese full version: https://cn.wordpress.org/txt-download/
Start production below:
1. After decompression, overwrite the configuration file wp-config-sample.php in the 4.9.1 Chinese full version into the English version.
2. Copy the languages Chinese language folder in the wordpress\wp-content directory in the 4.9.1 Chinese full version to the same directory as the English version.
3. Open version.php in the 4.9.3 English version wordpress\wp-includes directory, and add in the last line:
$wp_local_package = 'zh_CN';
is used to call the Chinese language file.
Finally, compress the program file into a zip format file.
Although the English version of WP can also select the language during installation and automatically download the corresponding language files, it is not exactly the same as the language files that come with the real Chinese version. The complete Chinese version is targeted at the Chinese environment. Some optimizations have been carried out, for example, you can directly paste the video website URL address in the article to reprint the video, etc.
The difference between the two installation interfaces is that the Chinese version enters the installation interface directly, while the English version requires selecting the language and downloading the language pack before installation:
In addition, domestic hosts often fail to automatically update WP in the background due to slow access to the WordPress official website. You can use FTP to upload overlay updates to the new version.
The above is the detailed content of How to make a complete small version of WordPress Chinese version installer. For more information, please follow other related articles on the PHP Chinese website!