Skip Navigation
Updated
March 15, 2021

NextGEN Gallery is one of the most popular gallery plugins for WordPress. It provides many useful gallery management features. Its integration with WPML enables easy translation of textual content generated by the plugin.

Page in original content Page translated to French
 Using WPML to translate NextGEN Gallery Using WPML to translate NextGEN Gallery

Contents

Getting started and what to check

Make sure to activate the NextGEN gallery plugin on the Plugins page.

check-that-the-necessary-plugins-are-activated
Activate the necessary plugins

Make sure to activate and configure the WPML Multilingual CMS, WPML String Translation, WPML Translation Management, and WPML Media plugins.

WPML translation tools

WPML offers two translation editors you can use for translating your site’s content:

Besides translating your site content yourself, you can also:

  1. Create a page in your original language and add a NextGEN Gallery to your page. In our case, the original language is English. Once you create your Gallery make sure to display it on the page and publish it.
  1. Click on the plus button in the Language section.
Using WPML to translate NextGEN Gallery

Your gallery will now display the French version of your page. However, your content is still in English. You will need to translate the description, caption, and the rest of the strings.

"<yoastmark
Example of content that still needs translating

To make your gallery translatable, go to WPMLTheme and plugins localization and scroll down to the Strings in the plugins section.

Select NextGEN Gallery and click on the Scan selected plugins for strings button.

Select Scan selected plugins for strings

As an example, we will translate the Caption of the image, but the steps are applicable for all Gallery elements:

WPML and NextGEN Gallery
Elements to translate using String Translation

1. Go to the WPML String translation page and search for the string that needs translation. In this case, we are looking for the caption “On this picture, you can see the mountains”.

Searching-for-the-caption-of-my-picture
Searching for the caption of my picture

2. Click on the blue plus symbol to start translating:

click-on-the-plus-symbol-to-start-translating
Click on the plus symbol to start translating

3. Write your translation inside the box. When you are done, click outside of it to exit. Your translation will be automatically saved.

translate-your-text-in-the-box
Translate your text in the box

4. You can also display the entire list of strings to translate by selecting the plugin_ngg domain as shown below:

Selecting the right domain
Selecting the right domain

Getting help from our support

In case you need help translating your site built using NextGEN Gallery and WPML, visit WPML’s support forum.