diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-01 15:45:07 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-01 15:45:07 +0000 |
| commit | 280747f7571ac042c63f5575365f369a2106afed (patch) | |
| tree | b218220aa2b7308e79efd9ca49f5613334103d5d | |
| parent | 59052e48db56626a77d3bef0ea747c2fb12ee90a (diff) | |
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
| -rw-r--r-- | django/utils/translation.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
