The following article explains how to Translate your WordPress site using the WPML plugin. There are numerous plugins that translate the WebPage content together with the Menu bar and all of the pages widgets automatically and also allow editing the pages language on the front Webpage or from the WordPress backend.
Note! we advise using WPML as the prefered method for translating your site.
First, you need to to purchase a recent version of WPML Multilingual CMS, including the String Translation and Translation Management modules.
First you’ll want to Install and activate the core WPML plugins:
- WPML Multilingual CMS,
- WPML String Translation,
- WPML Translation Management.
Next you’ll want to setup WPML and choose the languages you need. Do this in WPML > Languages – or check out the official tutorial here. Alternatively watch our video below explaining how to get started with WPML and choose your language in the set up.
Translating Pages, Posts and other post types
To translate a page you need to go to your WordPress admin. Next go to any page, post, or gallery, and in the list you will see columns for each active language, with a pencil icon (for ‘edit translation’) or a ‘+’ icon (for ‘add translation’) next to each page.
Translating custom post types and taxonomies
Flothemes comes with custom post types such as galleries, with custom taxonomies. In order to translate this content and have the options to translate / duplicate them, you need to go to WPML > Translation Management, and select the tab ‘Multilingual Content Setup’.
Translating Menus and Language Switcher in Header
WPML can synchronize menus for you. This means that if some entries, for example some pages, posts or categories, are in the English menu, WPML can generate and keep in synch menus for other languages pointing to the translated versions of these pages, posts or categories
From WordPress Appearance->Menus you can see your existing menus and add menu translations and synchronize menus across translations.
To show the language switcher at the end of your menu, you need to enable the following option:
Translating theme texts and other strings in your site
To translate strings you need to follow the procedure for Theme and Plugin Localization.
Go to WPML->Theme and Plugin Localization, and click on ‘Scan the theme for strings’ and you will see theme strings (phrases or words) that are translated and those that are not.
Check out the following video on how to do so:
Thats it folks. Once you have translated all pages, posts, galleries, updated the menu, translated any strings you’ll have a multilingual site!