pyramid: fix problem with default language for users without any explicit one set.
This commit is contained in:
parent
c650cdddcc
commit
7caba28f0e
1 changed files with 1 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ def get_current_lang(request):
|
|||
except:
|
||||
pass
|
||||
|
||||
return getattr(request, '_LOCALE_', None)
|
||||
return getattr(request, '_LOCALE_', request.locale_name)
|
||||
|
||||
|
||||
def attach_context_attributes(context, request, user_id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue