Multilingualism is created using the WPML Multilingual CMS plugin, which allows you to add languages and translate the content of pages, posts, menus and other elements.
PS! Since setting up a multilingual site is complicated, please contact eope@ut.ee before activating the WPML plugin and we will advise you on setting up the WPML plugin and creating a multilingual site.
After activating the WPML Multilingual CMS plugin, set up WPML by clicking WPML, Setup in the left-side menu. The default language is the language originally set for the site. In the Translation languages section, you can add one or more translation languages with the + sign.
We recommend using the following settings (PS!Consult eope@ut.ee in advance):
How would you like to format your site’s URL? – Different languages in directories
Existing key – generated automatically
How would you like to translate the content? – Translate What You Choose
Who will translate? – Only myself
If you add more users to your site later, they must be given translator rights: WPML – Translation Management – Translators (tab). PS! Add rights to translate in both directions.
Do you want to get better and faster support? – No
Improve your site’s translations using helpful plugins – do not selectString Translation and Advanced Custom Fields Multilingual components (click Skip)
Click Finish
Options for adding translations
There are different options for adding translations to pages. Before adding translations, think carefully about how you are going to add translations. If you want some translated pages to have shorter or entirely different content than the content in the original language, you should make them as separate pages and set the language of these pages as the translation language. Then, in the translated page’s edit view, you should link that page to the corresponding original language page (Option I). If the entire content of the page is exactly the same in the original and translated languages, you can choose the option of adding translations to the original language pages (Option II).
If a page has a translation in another language, the language change links appear in the upper right corner of the page (e.g. ET and EN).
Option I. Translations as separate pages
Original and translated pages must be created separately and the translated pages must be linked to the corresponding original pages.
On the left-side menu go to – Pages – All Pages.
Open the translation language page in edit view. Remember the title of the corresponding original page.
In the settings menu on the right, look for Language and set a translation language to the page (eg English) from the drop-down menu if it is not already there.
Then the page must be made public (if it has not already been made public) after which the option Connect with translations will appear under the language selection of the page.
Click on it and find the corresponding original languagepage by entering the name of the original page you want to associate the translated page with. If the original language page has not been created yet, create it in advance and set the language of this page to the original language.
After choosing the corresponding original page, remove the check mark in the next window (if you do not want to change the language of the original page to the translated language).
Click Assign.
In the next window, select Edit anyway and you can also add the check mark to avoid repeating this same selection in the future.
Option II. Original pages don’t have separate translation pages
Original language pages must first be created and then translations added to them.
On the left-side menu go to – Pages – All Pages. Translations can be added in the column with the language flag using the + sign (e.g. Add translation to English).
When adding translations, the translation of each paragraph must be added in the corresponding box and saved when done. At the very end, all the added translations on the page must be saved.
If you use the + sign to add translations, you must keep in mind that all the sections of the page must be translated (nothing can be left untranslated). If you have already made a translated page separately or are planning to do so, then do not add translations with the + sign, because otherwise it will not be possible to link the original language page to the translated page.
If you want some of the content on any of the translated pages to be shorter or to have different content than the content in the original language, you should create the content of that page in another language as a separate page and set the language of this page as the translation language. (Option I)
PS! If WPML plugin is used on a site, then the Theme Settings settings (including the Page status) must be saved for each language using the language switch button in the top menu.
Creating a translation language menu
If the pages have been translated in the original language or the pages in the original language are linked to the corresponding pages in the translated language, the next step is to create a menu for the translated language.
To do this, go to Appearance – Menus on the left and switch the view to the translation language from the page header.
Create the translation language menu and specify which original language menu it is a translation of.
Save the menu by clicking the Save Menu button at the bottom.
Creating a multilingual page with a menu
To create a multilingual page, if you don’t need to translate all the pages from the original language, you can also use a standard layout with a top and side menu bar. In this case, elements with language names must be added to the first level of the primary menu, and the content pages of the corresponding languages must be added as sub-elements. For this implementation, there is no need to activate the WPML Multilingual CMS plugin.