Translate Theme

There are 2 options to translate your theme:

Translation with Loco Translate plugin

  1. Install Loco Translate Plugin LINK
  2. Read more HERE

You can find .POT file in next folder wp-content/themes/escapium/languages/

Translation with Poedit application

  1. Download and install PoEdit if you haven’t done so already.
  2. Open wp-content/themes/escapium/languages/escapium.pot with PoEdit and translate all string in your language.
  3. Go to File → Save as… to save your translations in a .po file. If you do not know how to name it, take a look at this page: http://codex.wordpress.org/WordPress_in_Your_Language.
  4. Go to File → Compile to .mo and save your .mo file next to the .po file in /wp-content/themes/escapium/languages/
  5. Or you can set your PoEdit to always compile a .mo file when saving changes by clicking File → Preferencesand on the Editor tab check the Automatically compile .mo file on save box.

Updating Translation

After updates, you can update your .po file by opening it and then going to Catalog → Update from POT file. Choose the file and it will be updated accordingly.

Keeping Translation Files Upgrade Safe

You can put your .po/.mo files in the WP_LANG directory which will keep them safe from updates. This is usually the wp-content/languages/ directory.

So for example, you need put your .po/.mo files in wp-content/languages/themes/escapium-LOCALE.mo, replacing LOCALE with your language code.

Was this page helpful?