WordPress:Installing WordPress in Your Language

来自站长百科
Xxf3325讨论 | 贡献2008年3月22日 (六) 15:19的版本 (新页面: Although WordPress displays in U.S. English by default, the software has the built-in capability to be used in any language. The WordPress community has already translated WordPress into ...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航、​ 搜索

Although WordPress displays in U.S. English by default, the software has the built-in capability to be used in any language. The WordPress community has already translated WordPress into many languages, and there are Themes, translation files, and support available in many other languages (see WordPress in Your Language).

To install an international version of WordPress, you have two choices.

  1. Follow the instructions provided for your language listed at WordPress in Your Language
  2. If specific instructions are not available, follow the instructions below to manually install language files to your Wordpress site.

Manually Installing Language Files

Here are the steps you will need to follow to install an international version of WordPress.

  • Download the .mo language file for your language (see WordPress in Your Language for hints on how to find one). The naming convention of the .mo files is based on the ISO-639 language code (e.g. pt for Portuguese) followed by the ISO-3166 country code (e.g. _PT for Portugal or _BR for Brazil). So, the Brazilian Portuguese file would be called pt_BR.mo, and a non-specific Portuges file would be called pt.mo. Complete lists of codes can be found at (country codes) and (language codes).
  • Open your wp-config.php file in a text editor and search for:
define ('WPLANG', '');
  • Edit this line according to the .mo file you've just downloaded, e.g. for the Portuguese spoken in Brazil you must add:
define ('WPLANG', 'pt_BR');
  • Save the file.
  • On your site server, create a new folder in your /wp-content OR /wp-includes directory called /languages.
  • Upload the .mo file to the languages folder you just created.
  • Upload the modified wp-config.php file into the WordPress root directory.
  • Open your browser and go to your WordPress site. It should now display in the newly-installed language.
  • If you want to customize the translations displayed on your screen, or add translations for terms that are still displaying in English after installation, you will need to download the .po file corresponding to the .mo language file you installed. Then you will need to translate additional terms and create a new .mo file -- see Translating WordPress for more information.

Note: If there was an error in the steps above or you did not specify the correct language, WordPress will default back to English. For more help Installing WordPress, see Installing WordPress and FAQ Installation.