OnTechies

Tips for Modern Life

Change the language of your WordPress blog in 3 simple steps

I recently updated the site of my tax preparation business, as part of the re-design I was required to change the language used in the blog to Spanish. After searching in Google and trying a few WordPress plug-ins unsuccessfully, I ended up doing the following which surprisingly enough it worked out very well.

Step 1

Download the language files for the language you would like to translate your blog to. You will need to download two files, one with the extension .mo and the other one with the extension .po. The files are named using the two digit language code_two digit country code. For the Spanish file I needed I downloaded these files:

  • es_ES.mo
  • es_ES.po

These files can be downloaded from this site, just look for the folder labeled using the same format, language code _ country code:

http://svn.automattic.com/wordpress-i18n/

The exact url for the files I downloaded is this:

http://svn.automattic.com/wordpress-i18n/es_ES/tags/3.3/messages/

Step 2

Save the files mentioned above to wp-contentlanguages. If the folder languages does not exists, just create it.

Step 3

Open the wp-config.php file using a text editor, look for the following string “define(‘WPLANG’, ”);” and update it by adding the language file you downloaded. For example, in my case I updated this line to the following:

define('WPLANG','es_ES');

That is all, I hope this is useful for you and if you have any comments or better ways to localize a WordPress blog please let us know in the comment’s section.

 

 

 

3 responses to “Change the language of your WordPress blog in 3 simple steps”

  1. Thanks for this nice write, it helped me a lot !

  2. Hello! Just want to say thank you for this interesting article! =) Peace, Joy.

  3. Hi I want to change the language of my wordpress site to Hebrew and keep editting the wordpress in English.

    Is it possible?

    My WordPress editor is not showing language tab under Settings > General in 3.3.1 version.

    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

Create a website or blog at WordPress.com