def set_language(request, language):

    if check_for_language(language):
        request.session['django_language'] = language
Change the language of session of authenticated user.
dataset/ETHPy150Open slav0nic/djangobb/djangobb_forum/util.py/set_language