Fixed #2408 -- Added get_language_from_request() to trans_null.py. Thanks, ubernostrum
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ecdd6ae6de
commit
e433e07a8d
|
@ -25,3 +25,6 @@ def to_locale(language):
|
||||||
return language[:p].lower()+'_'+language[p+1:].upper()
|
return language[:p].lower()+'_'+language[p+1:].upper()
|
||||||
else:
|
else:
|
||||||
return language.lower()
|
return language.lower()
|
||||||
|
|
||||||
|
def get_language_from_request(request):
|
||||||
|
return settings.LANGUAGE_CODE
|
||||||
|
|
Loading…
Reference in New Issue