Author: UIuxaesthetics

Support: Open a ticket

Translation

General guide

The theme comes with GetText Catalog file (.PO) which contains all strings that are specific to the theme and won't be translated when changing WordPress language itself. The files reside in /languages folder of the theme. To translate WordPress Find a list of language codes at http://www.wordpress.org in your Language. As an example, the language code for English is en_EN.
Translating .PO file allows changing theme specific strings language. In order to translate .PO file follow proceeding instructions:

  1. Download and Install POEdit Software from http://www.poedit.net/download.php POEdit is cross-platform gettext catalogs (PO files) editor which provides compact view of data and very effective user interface.
  2. Extract the theme and copy the theme files into a new directory.
  3. Now open the PoEdit application, and create a new catalog (File » New catalog).
  4. From the menu, select Catalog » Settings and fill in all required information.
  5. Click on the Paths tab and change the local path from 1st line to your path with theme files and click "OK" then update the catalog (Catalog » Update from sources) to verify that your path to the theme is correct.
  6. Now you can start translating the theme by selecting each bold string in the list, and typing translation in editable area at the bottom.
  7. After you have completed string translations, save your catalog by using the language code_COUNTRYCODE file naming convention, eg. as fr_FR, and upload the compiled catalog that was generated by PoEdit (eg. fr_FR.mo) to your server, in the theme language directory.
  8. 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', '');

    If, per say, in our above example we translated to French then we saved our file as "fr_FR.mo" and need to change this line of code to:

    define ('WPLANG', fr_FR ');

  9. If everything is done correctly, you should now see the frontend of your site in translated strings.

Important:

Do not translate php values, such as %s, %2$s etc. Always include them in the translated string!

Previous Section (Sidebars / Widgets) Next Section (FAQ)