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

Simple multi-language website with lang attribute selector

Started by Marcus Rommedahl 6 years ago · 1 replies · 525 views
6 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 Paul Hodges, 4 weeks ago
19 491 6 days ago
Support · by Lauw, 1 week ago
2 107 1 week ago
Support · by Anna, 3 weeks ago
4 431 1 week ago
Support · by gtx, 4 weeks ago
4 380 3 weeks ago
Support · by Anna, 1 month ago
9 487 4 weeks ago