Commits

Anonymous committed a904336

Fixed #2408 -- Added get_language_from_request() to trans_null.py. Thanks, ubernostrum

Comments (0)

Files changed (1)

django/utils/translation/trans_null.py

         return language[:p].lower()+'_'+language[p+1:].upper()
     else:
         return language.lower()
+
+def get_language_from_request(request):
+    return settings.LANGUAGE_CODE