Gantry 5 Helium, Multi-Language URL

Hello,
does anyone here know how I can build a multilingual website with Gantry 5 and the Helium template so that the URL is displayed in the respective language?
In Grav I get the 2nd language done with the “SLUG” but then Gantry can’t map the template because of the changed URL.

Does anyone know a solution?

Thank you for your help!

Greetings
Stefan

Hi @Kaepsele

After you have configured your languages in admin, you have to save the pages in that languages. Each page must be saved with the menu, title and content translated.

In Gantry, you have to duplicate an outline, for example, home outline. Each outline can be assigned to a specific language in Assignments tab.

You can do that with the page particle, for example, to show a page in different languages.

Thank you for your help!
The page works in the 2 languages German and English, but I have to leave the URL in the main language German, because the Gantry menu references it.
If I enter a “Slug” in the 2nd language English so that the URL is in English, then Gantry will no longer find a reference to the template.
I hope I could explain it halfway understandable?


Hi @Kaepsele
I guess you will have two pages in the folder 02.uebermich, one with .en.md extension and another (the one in German) with .md only.

folder_pages

I don’t use the slug option for this. You have to translate only, title, menu option and content.

page_english

page_spanish

In Gantry you have to duplicate de page you want to translate. For example, in my case, the homepage in Spanish is “Inicio” and in English is “home”.

folder

In user\data\gantry5\themes\helium\config\home\assignments.yaml I have:

page:
  -
    home: true
language:
  -
    en: true
type: {  }

In user\data\gantry5\themes\helium\config\inicio\assignments.yaml I have:

page:
  -
    home: true
language:
  -
    es: true
type: {  }

That’s all. This should work Gantry in two languages.

Thank you for your explanation and assistance!

Can you please make me a screenshot of your URL in English and Spanish?

Hi @Kaepsele

Take a look at this page. I have made a Spanish-English translation of the home page.

Thank you for your demo page.
Can you please make a 2nd menu item, e.g. “About myself” or “Contact”, or…?

Take a look again to page.

However, you should take a look at Grav’s language help, and multilanguage.

Also, you can take a look to Gantry multilingual configuration.