我正在使用“模型翻译”进行阿拉伯语-英语翻译。一旦我登录并更改为阿拉伯语,然后注销语言更改为英语。
这是我的注销代码:,我在注销后激活了语言,它将语言打印为“ar”,但显示为英文。请帮帮我
def profile_logout(request,mode=None, **kwars):
lang = request.LANGUAGE_CODE
response = logout(request, **kwars)
translation.activate(lang)
print "langggggggggggggggggggggggggggggggggg",request.LANGUAGE_CODE
return response