Map Language and Copying Maps
MapPress fully supports the WPML translation plugin. The current WPML language is used for all map texts, including the Google and Leaflet map controls.
When creating a WPML translation, there is an option to duplicate the content from the original post, overwriting the target (translation) post. Selecting this option will copy all of the maps for the original post to the new post, where they can be translated.
Building a Multilingual Site Using MapPress and WPML
Follow this guide to learn how to build a multilingual site using MapPress Maps for WordPress and WPML.
Start by installing and activating the following:
- WPML core plugin (WPML Multilingual CMS) and WPML String Translation addon.
- MapPress or MapPress Pro plugin
For detailed instructions on how to set up WPML for the first time, check out WPML’s Getting Started Guide.
Translating Posts and Pages With Maps
MapPress is fully compatible with WPML’s Translate Everything mode, which translates your site’s content as you add or edit it.
If you want more control over the content you translate, choose the Translate Some mode. You can choose between translating content yourself, assigning it to individual translators, or sending it to a professional translation agency. Here, we’ll do the translation ourselves.
To begin, head to a post or page with a map:
- In the right sidebar of your page, locate the Language box. Click the plus icon next to the language you want to translate your page into.
Clicking the plus icon to translate your page
- You’ll be taken to the Advanced Translation Editor. If you have translation credits, you can click to translate your content automatically and review the translations. Otherwise, enter the translations for each sentence. Once you’re done, click Complete to publish the translation.
Using the Advanced Translation Editor to translate a page with a map
You can now view your translated page on the front-end. Notice that the controls and texts on the map are in the same language as our translated page.
Translated page with a map on the front-end
Translating MapPress Strings
Besides the texts coming from your posts and pages, there are additional texts coming from themes and plugins.
To translate MapPress strings:
- Navigate to WPML → Theme and plugins localization. Under the Strings in the plugins section, select MapPress Maps for WordPress and click the Scan selected plugins for strings button.
Scanning the MapPress Maps plugin for strings
- Once the scanning is complete, go to WPML → String Translation and search for the text you want to translate. You can use the In domain drop-down list to filter through the strings. All MapPress strings fall under the mappress-google-maps-for-wordpress domain.
- In the String Translation table, click the plus icon under the language you want to translate your string into. Add the translation and hit enter to save it.
Translating MapPress strings