How to apply ready translations

We have already translated the theme to 9 different languages. Languages included: English, French, Turkish, German, Dutch, Russian, Italian, Portuguese, Spanish. You can apply a ready translation by changing the website’s language in the Site Language option of the Dashboard > Settings > General section.

Those translations will be applied to the static (not editable) strings on the frontend of the website. Dynamic (editable) strings such as content, menu items, some part of widgets, and elements should be edited manually in the appropriate sections.

If you didn’t find your local language from the list above, you can easily translate the theme and plugins following the instructions below.

Translate using Loco Translate plugin

The easiest way of translating the theme is by using the Loco Translate plugin. Loco Translate is the free plugin and can be installed from the default repository of WordPress.

After installing this plugin the Loco Translate menu appears in your dashboard menu.

How to translate the theme

You need to go to Loco Translate -> Themes and select the MasterStudy theme.

Select the New Language link on the opened page.

In the initialization of the new translation, select the language that you used in the General Settings of WordPress. In our example, we selected the Dutch (Nederlands) language.

WordPress Settings

Choose the location of your translation file.

Important! The translation file should be stored in the following folder path ../wp-content/languages/themes/ to keep translations during the theme updates.

After, click on the Start translating button. It will create a translation file and redirects to the Loco Translate editor where you can start translating the theme strings.

Let's translate some strings in the header section.


How to translate plugins

The process of translating plugins is the same. You should just go to the Loco Translate -> Plugins section and select the needed plugin.

We selected the MasterStudy LMS plugin in the example.

Select the New Language link in the opened page

And the language that you used in the General Settings of WordPress. In our example, we selected the Dutch (Nederlands) language.

In order to keep your translations during plugin updates, we recommend saving them in ../wp-content/languages/plugins/ folder.

Now let's translate some static strings of the plugin like single course tabs.


Strings aren't translating after the new theme/plugin update

There are constant updates for every theme or plugins with new features and options. And once you have updated the theme/plugin, the strings in the new sections and features display without translations. In that case, it needs to synchronize the new strings with the main language file of the theme and after update the translation files.

Open Loco Translate from the dashboard menu. Go to Themes and select the MasterStudy theme.

In the opened page, click on the Edit template link.

This is NOT a translation file. Manual editing of source strings is not recommended.

Click on the Sync button to merge new strings from the source code to the main language file.

Click on the Save button to save the new strings and go to the list of the translation files.

Select your translation file and click on the Sync button.

Save changes and start to translate the new strings in the theme and plugins.

Using the PoEdit platform

Besides the Loco Translate plugin, you can use a PoEdit translation editor. You can add translation via editing your .po file and in the end, PoEdit generates .mo file for you. Then you can upload ready translation files to primordial folder (../wp-content/themes/masterstudy/languages/).

Before adding translations for static strings it needs to rename language files correctly according to your site languages. You can find a list of language codes at WordPress in your Language. As an example, the language code for English is en_EN, so you would save the translated files as en_EN.po first, then