Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Simple multi-language website with lang attribute selector

Started by Marcus Rommedahl 7 years ago · 1 replies · 690 views
7 years ago

Hi, I am running a simple blog using Grav inspired by some of the [beep] websites. The basic layout is in English but I also want to write blog-posts in my native language and then have a correctly set language attributes, but I do not want to set up a fully fledged multi-language website.

My idea is to when I write a website there is a button or selector where I choose the language of the page content, and that this then sets the correct language in the <html lang="en"> part of the template. Alternatively that it is set from the occurrence of a tag.

I would really appreciate help on what config file to make these changes in.

Cheers!

last edited 05/15/20 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 231 12 hours ago
Support · by alex, 2 months ago
8 667 1 day ago
Support · by Supple, 6 days ago
1 98 2 days ago
Support · by TomW, 1 week ago
3 160 3 days ago
Support · by TomW, 6 days ago
2 108 6 days ago