[Answer]-Can't get internationalization to work with Django 1.5

1👍

Setting request.session['django_langauge'] is not helpfull in this case. The LocaleMiddleware which I assume you have installed will parse that before the request gets to the view function. You should directly use the translation functions to change language for this.

from django.utils.translation import activate

def index(request):
    activate('fr')
    ....
    return response

Leave a comment