Okay
  Print

How do I translate the theme?

As an example let us say you are using the MyTheme theme from Theme Canon. Replace the MyTheme name with the name of your own theme in this following guide.

To translate the theme (or change specific words) you have to edit the language .po file (located in mytheme/lang folder).

We suggest you use the free editor POEdit: http://www.poedit.net/

Remember that your translated language file must be saved with the correct name for your specific country. The syntax of the name must be languagecode_COUNTRYCODE.po. So for Denmark this would be

da_DK.po

You can find your language-code here: http://www.loc.gov/standards/iso639-2/php/code_list.php
And your COUNTYCODE here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#AD

Also remember to translate the theme plugins. The .po file for each plugin can be found in the plugin /lang folder.

It is important that you name your plugin .po file correctly. So for a danish translation of the MyTheme Core Plugin the .po file should be named

loc_mytheme_core_plugin-da_DK.po

Once you have translated the .po file (or portions of it) you must tell WordPress to use your new translation.

Go to WordPress Settings > General > Site Language and select your language.

More info on translating WordPress can be found here:

http://codex.wordpress.org/Translating_WordPress