Okay
  Print

How to translate the theme into your language

Localization is the process by which the text on the page and other settings are translated and adapted to another language and culture, using the framework prescribed by the developers of the software. WordPress has already been localized into many other languages.

Wplab Themes comes localization ready. All that’s needed is your translation – if the theme does not come bundled with your own language.

Step 1. WordPress config

The first step is to make sure your WordPress config file is setup with your locale. Open wp-config.php and modify the line below, or add it if it is missing. We’ve set it to Indonesia in the example below. See the complete list of language codes and country codes to find your exact locale.

/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress.  A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de.mo to wp-content/languages and set WPLANG to 'de' to enable German
* language support.
*/
define ('WPLANG', 'id_ID');

Step 2. Loco Translate Plugin

  1. Install and activate the Loco Translate plugin
  2. Then from your Dashboard Go to Loco Translate > Manage translations
  3. Click the “+ New language” button beside the “Optimizer PRO”.
  4. Then on the next screen a Country dropdown list will appear, Select The language you want the texts to be translated. e,g: “Italian” and continue.
  5. On next screen all the “English text strings” that are inside the theme will be listed. Select text string from the “Source Text” list and then Add your translated text in the textarea below.


Example: If we want to translate the text “Read More” to Italian, We will have to find the “Read More” text from Source Text” list and add our translated text in the textarea. In this case “Per Saperne Di Più” inside the “Italian translation” box.

Then Click the Save button from top and all your translated text should appear on the your website instead of the default English text.

You can translate any text that’s used in Optimizer following the above steps.

NOTE: The translated text will only appear on your frontpage depending on your WordPress Language settings you set from Settings > General. If you want to change the default english text to translate to Italian, Make sure you have set your language to “Italian” from Settings > General.


Also, see a short video How to use Loco Translate