I speak fluently in French and English. I would like my website to be displayed in either language, depending on the visitor’s language setting. For the record, this information is provided by the visitor’s browser, a Accept-Language
HTTP header.
As far as I know, the best (and only?) way to achieve that is by using Apache’s mod_negotiation. Considering the following tree structure:
.
├── page.html.en
└── page.html.fr
Visiting page.html
displays the page in either English or French. I would like to use a CMS which makes use of this i18n method.
I am considering using Jekyll for my website. In the directory structure below, I guess I need to write my includes, layouts and posts in both French and English (2013-06-04-Omelette-du-fromage.markdown.en
, etc.).
.
├── _config.yml
├── _includes
│ ├── footer.html
│ └── header.html
├── index.html
├── _layouts
│ ├── page.html
│ └── post.html
├── _posts
│ └── 2013-06-04-Omelette-du-fromage.markdown
└── _site
So, the question is: How can I implement automatic internationalization on my website, with a CMS? I hardly imagine myself writing all my website by hand.