You can show Modula galleries on a multilingual site made with Polylang, a plugin that translates your pages. Modula has no special Polylang integration, and Polylang doesn’t translate Modula galleries. Galleries aren’t public pages, so they don’t appear in Polylang’s list of post types.
To show galleries on a multilingual site, you add a gallery to each translation of your page.
You can do this in two ways. Pick the one that fits your images.
- The same gallery on every translation: This works when your images show no text, or when their texts can stay in one language.
- One gallery per language: You need this when image titles, captions or alt text must be in the visitor’s language. See Translate image titles, captions and alt text.
Before you start
First set up Polylang and translate your page. If your site already has this, go to the next section.
- To install Polylang, go to Plugins → Add Plugin.
- Search for Polylang.
- Click Install Now.
- Click Activate.
- To add your languages, go to Languages → Languages.
- Pick a language in Choose a language.
-
Click Add new language.

-
Translate the page that will show the gallery. In the page editor, the Languages box shows the page’s Language.
Under Translations, you see a + for each other language. Click it to create the translation. Once the translation exists, you see a pencil icon instead.
This Polylang tutorial shows the whole setup.

Add a gallery to each translation
Now add the gallery to the page in your main language, and then to its translation.
- Edit the page in your main language.
- Click the + (block inserter) and add the Modula Gallery block.
- Click Display An Existing Gallery.
-
Type in Search for a gallery… and pick the gallery.

- Save the page.
- In the Languages box, click the pencil icon next to the other language. The translation opens.
- Add the Modula Gallery block there too.
- Pick the same gallery, or the gallery you made for that language.
- Save the translation.
Instead of the block, you can paste the gallery’s shortcode, like [modula id="89"], into a Shortcode block, a Classic block or a page builder. A shortcode is a short piece of text in square brackets that shows the gallery.
Copy the shortcode from the Shortcode column in Modula → Galleries. More ways are in Insert galleries in posts and pages.
With the Albums extension (Modula Pro), albums work the same way. Make one album per language from that language’s galleries. Then add it with the Modula Albums block or its [modula-album id="…"] shortcode.
Translate image titles, captions and alt text
Alt text is the short description of an image for people who can’t see it. An image’s title, caption and alt text are saved on the image in the Media Library, not in the gallery.
Every gallery that uses that image shows the same texts. When you change them in one gallery, they change in all of them.
So a gallery in another language needs its own copies of the images. Polylang can make these copies for you without copying the files.
Make a translated copy of the gallery
- Turn on media translation. Go to Languages → Settings and click Activate on the Media module.
- Go to Media → Library and switch to the list view.
- Click the + under the other language’s flag, next to an image. Polylang creates the copy and opens it.
- Type the title, Caption and Alternative Text in that language.
- Click Update. Do steps 3 to 5 for each image in the gallery.
- Go to Modula → Galleries.
-
Hover the gallery and click Duplicate. You get a “Copy of …” gallery with the same images and settings, and its own shortcode.

- Open the copy and click the pencil next to its name to rename it, for example “Urban & Architecture (ES)”.
- Click the first image, then click Edit image on it.
-
Click Replace and pick that image’s copy in the other language. The image keeps its place in the gallery. Alt text, Title and Caption now show the translated texts.

- Use the arrows next to Image 1 of … to go to the next image. Replace it in the same way.
- If the gallery uses filters, rename them in the copy’s Filters section.
- Add the copy to the translated page, as in Add a gallery to each translation.
Tip: Polylang’s language filter in the admin bar also filters the media library. Pick the other language there before you click Replace. The media window then shows only that language’s copies.
Note: Don’t type the new language into an image before you replace it. Until then, the copy still uses the original image. You would change the texts in the first gallery too.
You may not use Polylang’s media translation. In that case, upload the image again in the Replace window instead. The new upload is a separate image in the Media Library, and you can type its texts in the copy.
Example
Here is how the result looks on a real site. The English page shows one gallery:

When the visitor switches to Spanish, the translated page shows the gallery made for it:
