[docs] extended i18n page language detection

Fixes issue 9 of https://github.com/divio/django-cms/issues/2150