Multilanguage

That's not really page about i18n, but about multilanguage support.

Current idea how to support with minimal amount of troubles and maximal amount of features is:

Post must have language field, which is unique together with slug (or no? We don't have uniqueness for slug now). So user must care himself about setting same slug for his posts on different languages.

For handling display of particular language we'll have middleware, which will determine current language based on some setting. Idea is to have possibility to configure this middleware to determine language either from URL (configurable - from start, from end, whatever?) or from domain name (not sure how general this can be).

Questions

Let's say you speak Russian, I speak Hungarian and both of us speaks English. On my blog I write in English and Hungarian. What will you see in this case? Of course, you should see the english posts only. What will the Hungarian users see? As many Hungarians speak English, I would like to show them all the (unique) posts, not just the Hungarian ones. Of course, this assumes that not all the posts are available in every language.

One possibility is that by default we show the user all the English posts + native posts (if any). But what happens if my friend speaks all the three languages? Then I would like to show him all the posts. Perhaps we will have to look not only at the most-preferred language of the user agent, but all the languages that are set.

P.S. Of course, by default this must be turned off and must bring no pain to use blog with multilanguage disabled.

Ohloh project report for byteflow