The WPML plugin will help you to translate your website to different languages. Follow the steps described in this article to set up the plugin.
Activate the WPML plugin. Follow Dashboard > Plugins and click Activate under the WPML items.
After that click on Configure WPML to finish the plugin installation.
To manage languages, go to WPML > Languages.
The languages section allows you to make a WordPress site multilingual.
When you configure WPML for the first time, you need to choose the language of existing content. Select the language of your current website content in the Current Content Language section.
In the next step (Translation languages) add more languages to the site. Mark the languages you want to add. Then click on the Next button.
In order to let site visitors select their language, you can add a language switcher to the theme.
WPML’s standard language switchers include a drop-down languages list, a list of languages for the site’s footer, and a language switcher for the menu.
Click the “Add New Language Switcher to Menu” button to add the language switcher to the menu.
On the screen New Menu Language Switcher, select the position, style of menu items, specify what to add to the language switcher and choose the colors. Then click the "Save" button.
Here you can see a preview of your menu and position and you can manage them at any time. Click on the Next button to proceed to the further step.
Select the first option for compatibility reporting.
Paste the site key that you can find on your wpml.org account page and click the Register button. if you don't have a site key, then click the button to generate a key for this site.
After a successful setup, a drop-down list of the selected languages will appear in the area of your dashboard.
WPML lets you choose to format your site’s language URLs using a language argument in the URL, in virtual folders, or different domains (or sub-domains). Internally, all languages are saved in one WordPress database, but for visitors languages can appear to be on different sites.
You can choose the format you want when setting up WPML for the first time. If you would like to change it to a different format after setting up WPML, you can do so by going to WPML > Languages and scrolling to the Language URL format.
You can choose from the following options:
To set up your languages in directories, Apache’s rewrite module must be enabled. If you do not have access to your server’s settings, please contact your hosting provider to request them to enable this.
You can place different languages in completely independent domains. For example:
Don't forget to re-save your permalink settings after choosing your language URL format.
Now your site is ready for content translation.
Go to the WPML > Translation Management page to send content for translation.
Select translation steps. Choose who will translate the site and what tool can be used for that.
Once selected, finish the setup by clicking the Done button.
In order to make courses translatable, you need to choose the translatable option for them. Go to WPML > Settings > Post types Translation
Then, you need to enter a static slug course for your languages so that they work with the course archive page. Then save your changes.
Now you can translate your courses as regular pages.
Edit courses and duplicate them into other languages and translate your content to your language.
To translate the Register and Modal windows, you need to go to WPML > Languages. In the section called Languages filtering for AJAX operations mark the option "Store a language cookie to support language filtering for AJAX" and save the settings.
After configuring the WPML, you need to specify LMS Pages for their correct work. You will get the notice, asking you to specify the pages. Click on the Open Settings button.
You will be redirected to the LMS Settings (LMS Pages) where you can generate the pages. Click the Generate Pages button to generate the pages automatically. After the operation, you should re-save permalinks.