How to Translate the theme

Within this section, you’ll find everything you need to localize and internationalize the Jannah theme into your language. You can translate the theme in many different ways:

1. Using Jannah's built-in translation panel

Jannah lets you translate all the strings which are present on the front end of your website via the built-in translation panel in the theme settings page.

  1. Go to Jannah > Theme Settings > Translations.
  2. Add the translation for each element or just for the desired elements.
  3. Make sure you click Save Changes button, then you’re all done!

2. Using The Loco Translate plugin

The  Loco Translate plugin provides in-browser editing of PO files used to localize WordPress plugins and themes. check this tutorial for how to translate the theme via Loco Translate 

3. Using PoEdit

The translation file Jannah.pot is in the Languages Files folder in the theme folder. Edit the .po file using POEdit, and use the translation field to make replacements.  

From the file menu, save the file with your language name e.g de_DE.po. It will generate both a .po and .mo files for your translation. Place these files into the languages folder /wp-content/themes/jannah/languages.

4. Using the WPML Plugin

Since Jannah is WPML compatible theme, you can translate a template to a language of your choice. You will need to purchase a recent version of  WPML, including the String Translation and Translation Management modules.
Follow the  Getting Started Guide after installing the core WPML plugins.

To initiate translation, go to  WPML > Theme and Plugin Localization. Click on Scan the theme for strings. You will see the theme strings and which ones are translated. Then select WPML > String translation and a list of the strings in the theme will be available. Choose the string you need to translate and select the translation link to add translations to languages.