Yesterday, I started work on using Django’s i18n to build my first multi-lingual site.

I must say, the initial setup took me quite some time.

A brief overview of the setup

  • Add the middleware (easy)
  • Add uggettext everywhere (easy)
  • UTF-8 some files. If I had thought about this one in advance it really would have decreased my setup time.

I have so far written some middleware and a request context function to make everything that much easier. There is some database stuff left to do, so articles can be available in multiple languages, and possibly support for fallback. I think for now this will be somewhat manual, however in future I do intend on creating a custom model.

Once there has been some testing on this, I will publish some the code, as well as the possibility of a tutorial