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

Best way to setup multi language website?

Started by Muut Archive 11 years ago · 3 replies · 442 views
11 years ago

hey i am new to gravcms. I love the looks of it :-)

I want my website in english and dutch and saw that there are more ways to do this.

I though I could use translations keys in the page and then switch to different language with language switcher.

But when i switch from en to nl the url prefix change but the content is not translated.

What am i doing wrong?

Gravcms_language_issue

11 years ago

There are multiple parts to a multi-language setup. The two primary parts are:

1) Pages/Content in multiple languages
2) Translation of strings (outside of pages/content) in the current language.

Grav supports this plus other things such as custom language-based routes, etc. There is really only one way to do this part.

More information in the documentation

11 years ago

ok. i understand that i can make pages in english and in dutch. for each page i want. that part is no problem. But all pages appearing in the menu bar by default.it would be better if there was an option to create a english menu for english pages and a dutch menu for dutch pages.

11 years ago

aah i fixed it. for some reason i had to manually add my dutch and english page into the same (01.home) folder to get it working. in a proper way.

if i want to add a dutch page with the same name in the home fodler via the admin interface it does not add it and jump to the already excisting english page...

anyhow i manage to get it working somehow. so i am happy

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago