Skip to content
Browse files

Fixed #7831: be case-insensitive when in `get_language_from_request`.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent ddb3cdd commit 6a5cc9e7f67a1083bb9de89356b85e5982026538 @jacobian jacobian committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/utils/translation/
2 django/utils/translation/
@@ -381,7 +381,7 @@ def get_language_from_request(request):
for lang, dirname in ((accept_lang, normalized),
(accept_lang.split('-')[0], normalized.split('_')[0])):
- if lang not in supported:
+ if lang.lower() not in supported:
langfile = os.path.join(globalpath, dirname, 'LC_MESSAGES',

0 comments on commit 6a5cc9e

Please sign in to comment.
Something went wrong with that request. Please try again.