Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2408 -- Added get_language_from_request() to trans_null.py. Th…

…anks, ubernostrum

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e433e07a8d50e71c885bcbb58933efd3a992bcc4 1 parent ecdd6ae
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/utils/translation/trans_null.py
View
3  django/utils/translation/trans_null.py
@@ -25,3 +25,6 @@ def to_locale(language):
return language[:p].lower()+'_'+language[p+1:].upper()
else:
return language.lower()
+
+def get_language_from_request(request):
+ return settings.LANGUAGE_CODE
Please sign in to comment.
Something went wrong with that request. Please try again.