What language pack does WordPress use?
Although WordPress displays American English by default, WordPress is already embedded Functions in any language can be supported. The WordPress community has translated WordPress into multiple languages, and themes, translation documentation, and technical support are available in other languages.
Manual installation of language files
Single site mode installation
WordPress v4.0 and above
WordPress v3.9.2 and below
You need to follow the step-by-step method provided below to install an internationalized WordPress.
Download the .mo file corresponding to your native language (note that WordPress supports your native language, I believe you will find it). The naming convention for .mo files is based on the ISO-639 language encoding (e.g. pt for Portuguese) and follows the ISO-3166 country encoding (e.g. _PT for Portugal or _BR for Brazil). So, the Brazilian Portuguese file will be named pt_BR.mo, and the general Portuguese file will be named pt.mo. The complete list of codes can be found in (Country code) and (Language code).
Create a folder in /wp-content on your server: /languages;
Upload the .mo file to the languages folder you just created.
Note: WPLANG macros are no longer supported from version 4.0 onwards
For more WordPress technical articles, please visit the WordPress Tutorial column!
The above is the detailed content of What language pack does wordpress use?. For more information, please follow other related articles on the PHP Chinese website!