1
0
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:
Georg Bauer
2006-06-06 15:22:53 +00:00
parent 05b1a70dab
commit 7e88ec5271
6 changed files with 24 additions and 3 deletions

View File

@@ -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):