Django

Code

Ticket #2089 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

BiDi supporting patches for docs, template context and admin

Reported by: meir@mksoft.co.il Assigned to: hugo
Milestone: Component: Internationalization
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

django_bidi.diff (2.9 kB) - added by meir@mksoft.co.il on 06/05/06 04:04:59.
patch to add LANGUAGE_BIDI context var, update i18n.txt doc and feed rtl enabled stylesheets
login_rtl.css (272 bytes) - added by meir@mksoft.co.il on 06/05/06 04:07:29.
django/contrib/admin/media/css/login_rtl.css
base_rtl.css (55 bytes) - added by meir@mksoft.co.il on 06/05/06 04:08:20.
django/contrib/admin/media/css/base_rtl.css
django_login_bidi.png (22.0 kB) - added by meir@mksoft.co.il on 06/05/06 04:09:21.
Screenshot of the RTL Hebrew version of the login screen

Change History

06/05/06 04:04:59 changed by meir@mksoft.co.il

  • attachment django_bidi.diff added.

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

06/05/06 04:07:29 changed by meir@mksoft.co.il

  • attachment login_rtl.css added.

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

06/05/06 04:08:20 changed by meir@mksoft.co.il

  • attachment base_rtl.css added.

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

06/05/06 04:09:21 changed by meir@mksoft.co.il

  • attachment django_login_bidi.png added.

Screenshot of the RTL Hebrew version of the login screen

06/06/06 10:22:58 changed by hugo

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #2089 (BiDi supporting patches for docs, template context and admin)




Change Properties
Action