How to Install WordPress in Your Language

Posted by

You can install an international version of WordPress using following steps:

Manually Installing Language Files

  • Download the .mo language file for your language. 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). 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

Ryan S.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.