Ticket #8584: t8584.diff

File t8584.diff, 717 bytes (added by Ramiro Morales, 16 years ago)
  • django/utils/translation/trans_real.py

    diff -r cfb76521afac django/utils/translation/trans_real.py
    a b def get_language_bidi():  
    244244    True = right-to-left layout
    245245    """
    246246    from django.conf import settings
    247    
     247
    248248    base_lang = get_language().split('-')[0]
    249249    return base_lang in settings.LANGUAGES_BIDI
    250250
    def get_language_from_request(request):  
    389389                    'django.mo')
    390390            if os.path.exists(langfile):
    391391                _accepted[normalized] = lang
    392             return lang
     392                return lang
    393393
    394394    return settings.LANGUAGE_CODE
    395395
Back to Top