mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
fixed #2089: added language bidirectional support and updated the admin to use it. thanks meir@mksoft!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -36,6 +36,10 @@ def i18n(request):
|
||||
context_extras['LANGUAGE_CODE'] = request.LANGUAGE_CODE
|
||||
else:
|
||||
context_extras['LANGUAGE_CODE'] = settings.LANGUAGE_CODE
|
||||
|
||||
from django.utils import translation
|
||||
context_extras['LANGUAGE_BIDI'] = translation.get_language_bidi()
|
||||
|
||||
return context_extras
|
||||
|
||||
def request(request):
|
||||
|
||||
Reference in New Issue
Block a user