How to add a language to a world map for a multilingual WordPress site. Step-by-step guide

Websites of the major companies (tourist and logistics operators, air and cargo transportation, manufacturers, and distributors) are available in the languages of the countries where they run a business. One of the most visited sections in those websites are pages with interactive world maps. It clearly shows the geographical magnitude of the corporation, shows contact, statistic and any other information. It is convenient when each version of the multilingual website has a separate localized map.

img

If the main world map on your website is created and configured via Interactive HTML5 World Map plugin for WordPress, you can add it an unlimited amount of copies with the country names in any of the 23 languages. This is not difficult: the localization of one copy takes about 10 minutes.

World Sales Rep Map

In order to add an alternative language to a configured interactive map of the multilingual website, it is necessary to edit its CSV-file. This can be accomplished slowly (manually) or quickly:

  • in the editor Google Sheets
  • with the help of applications OpenOffice Calc or Microsoft Excel

The algorithm of the additional language addition to the world map consists of the following steps:

  • A. Making a copy of the configured map.
  • B. Setting up the unconfigured map with the required language.
  • C. Exporting a CSV file.
  • D. Editing CSV file.
  • E. Importing an edited CSV file to the site.

A. Make a copy of the configured map

  1. Login to the admin dashboard of the site. On the left menu, open ‘World Map’ section and then ‘Maps’ subsection.
  2. Select a map (let’s just call it ‘Map #1’) from the list to which it is required to add an additional language.
  3. Press ‘Export’ button. Locate a place to save a JSON file of the ‘Map #1’ on the hard drive of the computer and press the ‘Save’ button.
Make a copy of the configured map
  1. Press the ‘Import’ button. Select the JSON file that was saved in the previous step. Press the ‘Open’ button. After importing the JSON file Copy of the ‘Map #1’ (let’s call it ‘Map #2’) will appear in the list of the map on the ‘Maps’ page. Rename it to avoid errors in further configurations.
Duplicate map

B. Import to the CMS the map with a required language

Download a ZIP-archive file of JSON file with a required language (in our example, it is Spanish). Extract the archive. Click the ‘Import’ button on the subsection ‘Maps’ of the ‘World Map’ section on the admin panel of the site. Select the JSON file from extracted ZIP-archive and press the ‘Open’ button. After the file is uploaded on the ‘Maps’ page, there will appear another map (in our case – ‘Mapa del mundo’). Let’s call it ‘Map #3’.

The map list now includes 3 maps

C. Export the CSV file Map #2 and #3 for editing

  1. Navigate to subsection ‘Tools’ of the ‘World Map’ section on the left hand sidebar of the admin panel of the site.
  2. In the dropdown list ‘Select a map’ select ‘Map #2’.
  3. In the dropdown list ‘Field delimiter’ select the delimiter ‘semicolon’.
  4. Press the button ‘Export to CSV file’. Specify a location on the HDD of your PC to save the CSV file. Press the ‘Save’ button.
Export to CSV file
  1. In the dropdown list ‘Select a map’ select ‘Map #3’ (in our example – ‘Mapa del mundo’).
  2. In the dropdown list ‘Field delimiter’ select the delimiter ‘semicolon’.
  3. Press the button ‘Export to CSV file’. Specify a location on the HDD of your PC to save the CSV file. Press the ‘Save’ button.
Export to CSV file

D. Edit saved CSV files

It is possible to the CSV file using online editor Google Sheets, OpenOffice Calc or Microsoft Excel software. We recommend using Google Sheets.

Editing the CSV files in Google Sheets

  1. On the browser, open homepage of Google Sheets. Create a new table.
Create a new table
  1. Click ‘Import’ on the ‘File’ menu.
Import
  1. Open the ‘Upload’ tab and then press ‘Select a file from your device’. Select the CSV file that was exported from ‘Map #3’ from your computer. Press the ‘Open’ button.
Upload
  1. Select ‘No’ from ‘Convert text to numbers, dates, and formulas’ on the ‘Import file’ tab. Press the button ‘Import data’.
Import data
  1. Select the column ‘name’ and copy its contents to the clipboard.
Select a column with a localized list of countries
  1. Repeating the previous steps, open the CSV file ‘Map #2’. Select the column name and paste the data from the clipboard. In the ‘Download’ section of the ‘File’ menu click ‘Comma-separated values (.CSV, current sheet)’.
Download CSV
  1. Save the edited CSV file to your computer.

Editing the CSV files in OpenOffice Calc

  1. Run OpenOffice Calc application. Click Open from the File menu.
OpenOffice Calc
  1. From the drop-down list Character Set select Unicode (UTF-8). Click the OK button.
Character Set Unicode
  1. Select the column name and copy its contents to the clipboard
Select column
  1. Repeating the previous three steps and open the CSV file ‘Map #2’. Select the column ‘name’ and paste the data from the clipboard.
  2. Save the edited CSV file to the HDD of your computer.

E. Import to the site edited ‘Map #2’ file

  1. Navigate to the ‘Tools’ section of the sWorld Maps on the menu of the admin panel of the site.
  2. Choose ‘Select a map’ from the drop-down list ‘Map #2’.
  3. Select the ‘semicolon’ from the ‘Field Delimiter’ list.
  4. Press ‘Import from CSV file’ button.
Import CSV file
  1. Select edited CSV file ‘Map #2’ from the HDD of the PC. Click the Open button.

Navigate to the World Map section on the admin panel of the site. From the drop-down list ‘Select a map’ choose ‘Map #2’. Open the ‘Preview’ tab. If all the operations were accomplished successfully, then you will see the configured map of the world with the names of countries in the language you need.

multilingual world map

Delete ‘Map #3’. To do so, navigate to the ‘Maps’ page of the ‘World Map’ sections and click ‘Delete’, which is located on the same level as the name of the map that will be deleted.

Delete a map
Thus, to add an additional language to the map of the world created on a multilingual site with the help of the Interactive HTML5 World Map plugin for WordPress, it is necessary to create a copy of the main map – ‘Map #2’. Then, download a ZIP archive with the JSON file with the required language and import it to the site, creating ‘Map #3’. After that, edit ‘Map #2’, by changing the contents of the column ‘name’ to the column ‘name’ from CSV ‘file Map #3’ and import the edited ‘Map #3’ file.

Via the described method, it is possible to change not only the language but also other information on the map – links, colors, images.

Try World Map for WordPress for free

Related Posts