Django

Code

Changeset 759

Show
Ignore:
Timestamp:
10/01/05 10:45:07 (3 years ago)
Author:
hugo
Message:

i18n: language en is now successfully recognized on accept-header parsing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/i18n/django/utils/translation.py

    r758 r759  
    206206 
    207207        for lang, order in langs: 
    208             if os.path.isfile(os.path.join(globalpath, lang, 'LC_MESSAGES', 'django.mo')): 
     208            if lang == 'en' or os.path.isfile(os.path.join(globalpath, lang, 'LC_MESSAGES', 'django.mo')): 
    209209                _accepted[accept] = lang 
    210210                return lang