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.

Support

Cannot add pages in a new language (FR)

admin first-time

Solved by Daniel Wrightson View solution

Started by Kamal Oumghar 6 years ago · 5 replies · 661 views
6 years ago

I just added to my user/config/system.yaml a new supported language (french) but when i change the language in my "pages" tab it keeps showing only the spanish language pages.
I cannot change the language inside, the only page that seemed to work in french was "Systèmes de formation".
french not available|559x500
Any clue?

6 years ago Solution

There is a way in admin, but I always end up doing it outside the admin, usually within visual code. I just duplicate the page, save it as page.it.md instead of page.dk.md (or whatever) then translate what needs translating. It's quick enough.

👍 1
6 years ago

I would like to know about the admin way. I'm afraid I cannot access the directory to create a new "page.fr.md".
Can I solve the issue just using the grav manager?
Thanks in advance.

6 years ago

Sorry, I can't find it. I've tried a few times when I've had some spare time but no luck.

The must be a way!

👍 1
6 years ago

At the end I did it the way you said, outside admin.
I duplicated all the files and renamed them to the language I needed (page.fr.md).
I found this way quite tedious, since I had to duplicate around 100 pages.
I would not like to do this again in the future in case I had to add a new language.
Grav probably provides a better way of doing this but I don't know how.
Thanks for your help!

6 years ago

Cheers. I'm going to have to generate a pile of danish pages soon - I'll let you know if I finally manage to work it out : )

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
3 90 1 hour ago
Support · by Anna, 3 days ago
2 92 22 hours ago
Support · by Justin Young, 23 hours ago
1 40 23 hours ago
Support · by Duc , 1 week ago
2 98 6 days ago
Support · by Colin Hume, 1 week ago
2 90 6 days ago