diff -r cfb76521afac django/utils/translation/trans_real.py
a
|
b
|
def get_language_bidi():
|
244 | 244 | True = right-to-left layout |
245 | 245 | """ |
246 | 246 | from django.conf import settings |
247 | | |
| 247 | |
248 | 248 | base_lang = get_language().split('-')[0] |
249 | 249 | return base_lang in settings.LANGUAGES_BIDI |
250 | 250 | |
… |
… |
def get_language_from_request(request):
|
389 | 389 | 'django.mo') |
390 | 390 | if os.path.exists(langfile): |
391 | 391 | _accepted[normalized] = lang |
392 | | return lang |
| 392 | return lang |
393 | 393 | |
394 | 394 | return settings.LANGUAGE_CODE |
395 | 395 | |