Polylang Integration
Last updated
Was this helpful?
Last updated
Was this helpful?
The integration of Polylang with MasterStudy LMS allows you to create and manage multilingual content within the LMS. It supports the translation of courses, lessons, assignments, and other components, helping you deliver content in multiple languages.
The free version of Polylang can be installed from the WordPress repository.
The free version of Polylang is enough to create a multilingual website. However, if you want to get the premium features of the plugin, you have to purchase it separately. Polylang Pro features can be
Follow WP Dashboard > Plugins > Add New Plugin and search for Polylang. Install and activate it:
After the plugin is activated, the quick setup wizard opens. On the first Languages step, you have to add the languages that you will use on your website, including the primary language. As an example, English and Spanish have been added as languages. Once you are done, proceed by clicking the Continue button:
The first language you add becomes the default language of your multilingual website.
In the second step, you can enable the media translation option. You must activate media translation if you want to translate the title, the alternative text, the caption, or the description of the media.
On the Content tab, you have to choose your website's primary (default) language. In my case, English is the primary language. All of the existing content on your website will be assigned to the chosen language:
You will be notified about your homepage and its primary language during this step. Just check the information and proceed by clicking the Continue button:
This step concludes the setup wizard of Polylang. You can go back to the Dashboard.
You can get more information about Polylang from their official documentation:
Settings of Polylang can be accessed via WP Dashboard > Languages. It consists of three tabs:
Languages - on this tab, new languages can be added, or existing ones can be modified
Translations - core string translations can be done here
Settings - the tab includes the core settings of the Polylang plugin
Setup - opens the setup wizard to do the quick setup
If you are using the Pro version of Polylang, make sure to set the custom URL for the courses page. It can be done from the Translations tab - change the slug for courses in other languages and save the changes:
Follow WP Dashboard > Pages > All Pages and click on the ➕ icon in the Spanish column to create a Spanish duplicate of the page:
Write the title of the page. It's crucial to generate the URL of this page in Spanish. Then publish the page:
That's all. Here is the result:
Now you can go and translate your LMS Contents.
Before translating , it's crucial to create translations of the . Let's see how to translate them as an example of the User Account page.