Multilingual Website Using WPML
One of the most powerful tools for translators, WPML is compliant with the WP Event Manager. WPML makes any regular WordPress website very easy to transform into a multilingual website. Choose from more than 40 languages, or build yours, with just a few clicks.
Certain crucial considerations are to make sure these plugins(WP Event Manager and WPML) operate well. Starting with, supposing you have already configured and activated the WP Event Manager plugin and proceeding to WPML installation.
The first time you use WPML, you need to manually download it and install it.
- Download the main WPML components: WPML Multilingual CMS, String Translation, Translation Management, and Media Translation. You will receive a ZIP file for each one of WPML’s components.
- Log into your site and in the WordPress admin, go to the Plugins page and click Add New. On the Add Plugins page click Upload Plugin, select the ZIP files that you downloaded and click Install Now.
Alternatively, if you cannot upload plugins directly to WordPress:
I. Unzip each file. A directory will be created.
II. Upload the unzipped directories to your site’s ../wp-content/plugins directory
- Go back to the Plugins page and enable the newly uploaded/added plugins.
Getting Started with WPML
- After installation of the WPML plugin, follow the initial setup wizard steps to set up the essential configuration settings by navigating to WP-admin >> WPML.
- After the setup has been completed, under the WPML area of your WordPress dashboard(WP-admin >> WPML), you now have a new tab under the WPML section head.
- Navigate to the Settings page and make sure to select the Multilingual Content Setup tab.
- Scroll down to the How to translate posts and pages section. You can select any one of the two options available, The classic editor, or the WPML’s Advanced Translation Editor.
We recommend using the Advance translation editor because it is more easier to use, vis-a-vis saves a lot more time.
- Scroll down to the Slug translations section, check the Translate custom post and taxonomy base slugs (via WPML String Translation) box and click Save.
- Scroll down to the bottom of the same tab to the Post Types Translation and Taxonomies Translation sections.
- The basic plugin setup is now complete! You are ready to start managing translations for your event.
How to translate pages, posts, and custom posts
In order to translate the page posts and custom posts, you can either translate them manually or use Translation Management.
Translation using Translation Management
WPML will guide you through a simple setup wizard if you are using WPML ‘s Translation Management.
- After the setup, you are directed to a Translation management dashboard, where you need to select the type of translation(page/post/block/template,etc)
- Post which you can now select which page you want to translate, by check-marking on the box beside them.
- After the pages or posts are selected, select the translation options you want them to translate in.
- After the options are selected, click on “Add selected content to translation basket”
Now go to translation basket and click on “Send all items for translation”
- Your pages are now ready to be translated.
In case if you want to manually translate the pages, you can read here: https://wpml.org/documentation/getting-started-guide/
In order to translate the pages via Advance translation editor, please Proceed with the following steps:
- Now go to WPML >> Translation Queue
- Here you get the list of all the pages, posts, and events, and you can now click upon any page you want to translate.
- You would be redirected Advance translation editor page.
- If you have an automatic translation tool, you can click upon the Translate automatically. The whole page get translated automatically with the help of machine translation.
- However, you can also translate individually by clicking upon click to edit translation.
The whole Page would be broken down in the sentence format, which can be also edited and translated according to your needs.
The major advantage of using the Advance translation editor is that you can focus on Test and all the Html markers are removed.
- When you are done, you can save it and hence the page gets translated.
How to translate Custom Post Type(Organizer/Venue)
To be able to translate custom post types, one can do that automatically from the XML file. The language configuration file includes information so that each and every user doesn’t need to manually enter it on the admin page. The file is named wpml-config.xml and it’s placed in the root folder of the plugin or theme.
<wpml-config> <custom-types> <custom-type display-as-translated="1" translate="1">event_organizer</custom-type> <custom-type display-as-translated="1" translate="1">event_venue</custom-type> </custom-types> </wpml-config>
You can read more on the language configuration file here: https://wpml.org/documentation/support/language-configuration-files/#custom-types
To be able to translate custom post types Manually, you need to set them as “translatable” in WPML.
- Go to the WP-admin >> WPML >> Settings and scroll to the Post Types Translation section.
- Here Select Organizer and venue and click on Translatable.
Hence now you can either directly translate using the translate manager as they would now appear on the translation dashboard or Go to WP-admin >> event manager >> Organizer/venue and translate manually.
How to Translate Strings with WPML
- Navigate to Theme and Plugin Localization.
- Since the Wp-event manager already provides .mo files, you would see a notification tab that would state, WPML has detected changed or new MO files.
- Click on this tab- WPML has detected changed or new MO files >> Wp event manager, and, scan for the Translations files.
- After the translations are completed, you need to go to String Translation( Wp-admin >> WPMl >> String translation)
- Here in the domain section mention the name of the plugin (Wp-event manager) and search for the terms you are looking to translate.
- Let’s take an example, We search for “Choose a Category and hence all the source strings now appear on the screen, which you can now Translate. For this click on the plus sign, for the language, you want to translate, enter the translation, and press enter.
- The String is now translated on the frontend.
In order to translate Taxonomies, one can go through the doc: from here.