parvula
parvula copied to clipboard
Internationalization (i18n)
Hello,
Is anything planed for internationalization? Could be great to create different page depending on the user lang. Same for errors pages.
Hi, Yes it's definitely planned, not sure if it will be in the 0.7 or 0.8. I need to think a bit more about how we can structure that, if you have some idea, do not hesitate !
Hi,
Well, I used to do it with some SQL table. I didn't look all your CMS source yet, so I'm not sure what I'm suggesting is the better idea but the first think I thought it's a simple templated folder name in data/pages (such as: data/pages/$en/page_name, $en-uk, $fr, $fr-en, etc... without .md file) which provide in the administration a folder for each languages with a default home page. Creating a page in one of this folder (from the administration), should automatically duplicate it in other languages.
Also, a piece of code redirecting the user to wwww.my-website.tld/en/, wwww.my-website.tld/en-uk/ automatically (with a simple IP check) could be great. Or the possibility to select a default language directly from the administration.
Just some idea like that. As I said, I didn't really look the code yet and it's probably not the more optimized solution.
Thank for this idea, I will think about it and see what I can do :) I'll keep you in touch