From 280747f7571ac042c63f5575365f369a2106afed Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Sat, 1 Oct 2005 15:45:07 +0000 Subject: [PATCH] i18n: language en is now successfully recognized on accept-header parsing git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@759 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/translation.py b/django/utils/translation.py index 37feeb91ed..40246e311d 100644 --- a/django/utils/translation.py +++ b/django/utils/translation.py @@ -205,7 +205,7 @@ def get_language_from_request(request): globalpath = os.path.join(os.path.dirname(settings.__file__), 'locale') for lang, order in langs: - if os.path.isfile(os.path.join(globalpath, lang, 'LC_MESSAGES', 'django.mo')): + if lang == 'en' or os.path.isfile(os.path.join(globalpath, lang, 'LC_MESSAGES', 'django.mo')): _accepted[accept] = lang return lang