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.
If you didn’t find your local language from the list above, you can easily translate the theme and plugins following the instructions below.
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.
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.
Choose the location of your translation file.
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.
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.
Now let's translate some static strings of the plugin like single course tabs.
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.
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.
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 en_EN.mo.