You can translate any WordPress plugin in two ways. If the plugin is available on WordPress.org, you can translate it from there or your plugin developer might install GlottPress on their site to translate it online. Some companies use third-party websites like Transifex to maintain their translation projects.
Downloading Existing Translations
Some of the users volunteered to translate Tutor LMS on WordPress.org in various languages. If you have installed WordPress in Spanish or any other language other than English, then the plugin translations will be downloaded automatically when you install a new plugin and the same goes for a theme as well.
If you have installed WordPress in English and want to switch to another language, you can just select the language in WordPress settings and start using the translations! No manual effort is required!
Here is the list of languages already available for Tutor LMS:
- English (US)
- French (France)
- Portuguese (Brazil)
- Portuguese (Portugal)
- Spanish (Spain)
- Go to WordPress Dashboard > Settings > General and set your preferred language and click Save. This will download the translation for WordPress core. However, the theme and Plugin translations are not downloaded automatically.
- Go to WordPress Dashboard > Updates and click on the Update Translations button. This will download the available translation files for the selected language. It will work for all installed plugins and themes.
Please note that these translations will keep updating with every plugin or theme update from WordPress.org. So, the words might not remain the same forever because the translations are done and approved by volunteers. If you want to use your own wording, please download the files and put them in the wp-content/languages/plugins/ folder.
We Also Have A Video Explaining All The Steps
If your language is not available on the list above, please follow the options below to translate on your own.
Translating Tutor LMS Online
You can click the Development tab from the plugin page to see the translation link or you can visit the translation page using the following link:
On the page mentioned above, you’ll see all the languages mentioned listed. So, start by clicking on the language you prefer. Then, you will see the following two sub-projects:
- Development (trunk)
- Development Readme (trunk)
Development (trunk) will always have a larger number of strings to translate and this is the one you need for the plugin. The Readme project is for the plugin page on WordPress.org. It has nothing to do with your LMS portal. So select the Development (trunk) option.
Next, you’ll see the strings from the plugin and if you already have an account on WordPress.org, you can double-click on the right side of any string and start translating.
When the translation reaches 90% for a language, WordPress will automatically pull the language on your server.
When the translation is done, you have to change the language from WordPress Dashboard > Settings > General > Site Language.
Here, select your preferred language and click Save. WordPress should automatically pull the available translations for all the active themes and plugins from WordPress.org.
Translating Tutor LMS Offline
WordPress uses .mo files which are machine-readable files by the web servers. This file might not be included with themes or plugins. What you get with themes or plugins is the .pot file. This is more like a template with the English words and sentences that are used in the theme or plugin. You can use the software you like to edit the .pot file and generate the .mo file. We recommend PO Edit. It is free and using it is quite easy.
You can download PO Edit software from here https://poedit.net and install it on your computer.
- To start, go to the General settings from your WordPress Dashboard and set the default language to the one you wish to use if it’s not already.
- Then, download the plugin from WordPress.org if you have not done already and unzip the file.
- The language template should be inside the languages folder inside Tutor. If you have locally installed tutor for testing purposes, then the location should be /wp-content/plugins/tutor/languages/tutor.pot
- Now open the file with Poedit or any software you like to use for editing WordPress translation files.
- After you are done translating all the text, save the file. The software should automatically generate two more files with your language code. For example, if you have selected Arabic, then the software would create two files named tutor_ar.po and tutor_ar.mo.
- Please note that the file names are very important and it is case-sensitive. To understand the correct language code for your language, please refer to this document.
- You can keep the files inside the languages folder of the plugin and they will work. But as WordPress replaces the entire folder when it updates the plugin, your translation file will be deleted on update. A safer place would be /wp-content/languages/. This Languages folder should be automatically created when you switch the WordPress Language from the General settings.
- If you do not see the languages folder inside wp-content, you can manually create it. Then create a plugins folder inside that and place your plugin-related language files there. So the final location of the translation files for Tutor LMS will be wp-content/languages/plugins/. (You can similarly create a themes folder inside languages to store theme-related language files.) These will now be safe whenever WordPress updates itself.
- If the WordPress language is set correctly when you visit your plugin pages, you’ll now have fully translated UI content!
If you get stuck in any of the steps above, please contact our support team. We will help you to fix it as soon as we can. In this specific case, we recommend sending your staging servers file access and WordPress Admin access so that we can log in and check what is wrong faster.
Now that you have translated your Tutor LMS plugin UI, you might be wondering how you can translate your Tutor LMS content. Luckily, you can use Tutor LMS Pro’s integration with WPML to easily achieve a full-fledged multilingual site! To learn more, check out this article.