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:
Adrian Holovaty 2006-07-27 16:38:32 +00:00
parent ecdd6ae6de
commit e433e07a8d
1 changed files with 3 additions and 0 deletions

View File

@ -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