« See all FAQs for Breeze - Professional Corporate and Portfolio WP

How do I translate the theme to another language?

Translating the theme to another language is very easy.

The theme comes with a GNU Gettext Catalog file (.PO) and you can find it in the folder /language/breeze.po.

As an example, say you want to translate the theme’s frontend to Portuguese. First thing you need to do is to create a copy of the breeze.po file and name it pt-PT.po. Notice the language tags in the file name and make sure to select your tags correctly. Look at the following examples:
  • English: en-GB (British English), en-US (American English), en-CA (Canadian English)
  • Spanish: es-ES (Castilian Spanish, Spanish as written and spoken in Spain), es-MX (Mexican Spanish), es-AR (Argentine Spanish), es-CO (Colombian Spanish)
  • Portuguese: pt-PT (European Portuguese, Portuguese as written and spoken in Portugal), pt-BR (Brazilian Portuguese)

So now that you have a copy of the original breeze.po file, you need to open this new file using an application called Poedit: http://www.poedit.net/.

When you Install the app and open your file, you’ll see a column with the theme’s original strings in English and a column for the translation.

Click each individual original string and at the bottom provide a translation for it in your destination language.

When you have all the original strings translated save the file in Poedit.

You’ll now see that the app has created a new file called pt-PT.mo which has all your translations compiled. Copy this file to the languages folder of the breeze theme in your Wordpress installation.

Now that you have a compiled translated file you need to instruct Wordpress to use it (if you’ve already installed Wordpress in another language you might have the next step done already). Open the file wp-config at the root of your Wordpress installation and look for the following code:

define ('WPLANG', '');

In our above example, we are translating to Portuguese so change this line of code to:

define ('WPLANG', 'pt-PT');

You should now see the frontend of your site using the translated strings.