Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Gantry

Multilingual Site Problem with Menu

Solved by Karmalakas View solution

Started by Michail 5 years ago · 2 replies · 870 views
5 years ago

I have created a site for a company in grav cms using grantry 5 helium theme. I am trying to create multilanguage site following your grav documentation instructions. I have created two .md files for each page one for en language and one for gr language i.e. files end with en.md and gr.md inside each page folder. Everything works fine except the main menu. In menu everything gets translated according to language selection except "Home". Home don't translate and is displayed as "Home" in both languages.
I have a 01.home directory and inside it two files default.en.mg and default.gr.md with the following content:

YAML
default.en.md
---
title: 'Home'
---

default.gr.md
---
title: 'Αρχική'
---

However 'Αρχική' never gets displayed in when visiting site/gr only 'Home'

Any suggestions??

5 years ago

Thanks a lot solution by maria in post 7 worked like a charm.

Suggested topics

Topic Participants Replies Views Activity
Gantry · by Chris, 11 months ago
1 171 11 months ago
Gantry · by Sam, 1 year ago
7 220 1 year ago
Gantry · by Dima, 2 years ago
2 74 2 years ago
Gantry · by KimTaeWoong, 9 years ago
2 1882 3 years ago
Gantry · by stani, 6 years ago
2 829 3 years ago