Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2089 closed enhancement (fixed)

BiDi supporting patches for docs, template context and admin

Reported by: meir@… Owned by: hugo
Component: Internationalization Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

This follows #1660. It adds:

  • LANGUAGE_BIDI context variable
  • updates docs/i18n.txt to include information about the new context variable
  • Modifies admin's login.html and base.html to feed rtl stylesheets which import the corresponding stylesheets and override the ltr specific settings
  • 2 RTL enabled admin stylesheets (base_rtl.css and login_rtl.css).

Also see attached a screenshot of the admin's RTL login screen.

Attachments (4)

django_bidi.diff (2.9 KB) - added by meir@… 9 years ago.
patch to add LANGUAGE_BIDI context var, update i18n.txt doc and feed rtl enabled stylesheets
login_rtl.css (272 bytes) - added by meir@… 9 years ago.
django/contrib/admin/media/css/login_rtl.css
base_rtl.css (55 bytes) - added by meir@… 9 years ago.
django/contrib/admin/media/css/base_rtl.css
django_login_bidi.png (22.0 KB) - added by meir@… 9 years ago.
Screenshot of the RTL Hebrew version of the login screen

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by meir@…

patch to add LANGUAGE_BIDI context var, update i18n.txt doc and feed rtl enabled stylesheets

Changed 9 years ago by meir@…

django/contrib/admin/media/css/login_rtl.css

Changed 9 years ago by meir@…

django/contrib/admin/media/css/base_rtl.css

Changed 9 years ago by meir@…

Screenshot of the RTL Hebrew version of the login screen

comment:1 Changed 9 years ago by hugo

  • Resolution set to fixed
  • Status changed from new to closed

(In [3091]) fixed #2089: added language bidirectional support and updated the admin to use it. thanks meir@mksoft!

Note: See TracTickets for help on using tickets.
Back to Top