Code

Ticket #8584: t8584.diff

File t8584.diff, 717 bytes (added by ramiro, 6 years ago)
Line 
1diff -r cfb76521afac django/utils/translation/trans_real.py
2--- a/django/utils/translation/trans_real.py    Tue Aug 26 20:06:30 2008 -0300
3+++ b/django/utils/translation/trans_real.py    Tue Aug 26 22:17:15 2008 -0300
4@@ -244,7 +244,7 @@ def get_language_bidi():
5     True = right-to-left layout
6     """
7     from django.conf import settings
8-   
9+
10     base_lang = get_language().split('-')[0]
11     return base_lang in settings.LANGUAGES_BIDI
12 
13@@ -389,7 +389,7 @@ def get_language_from_request(request):
14                     'django.mo')
15             if os.path.exists(langfile):
16                 _accepted[normalized] = lang
17-            return lang
18+                return lang
19 
20     return settings.LANGUAGE_CODE
21