Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9278 closed (fixed)

Geographic Admin doesn't show vector overlay when LANGUAGE_BIDI is set

Reported by: jbronn Owned by: jbronn
Component: GIS Version: 1.0
Severity: Keywords: gis rtl
Cc: dane.springmeyer@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The vector overlay fails to display for when LANGUAGE_BIDI=True -- right-to-left languages like Arabic and Hebrew.

Attachments (3)

geoadmin_bidi_fail.png (39.7 KB ) - added by jbronn 15 years ago.
No overlay
geoadmin_rtl_fix.patch (719 bytes ) - added by springmeyer 15 years ago.
Patch to force any OpenLayers map to maintain ltr text ordering
geoadmin_rtl_fix_v2.diff (4.6 KB ) - added by jbronn 15 years ago.

Download all attachments as: .zip

Change History (8)

by jbronn, 15 years ago

Attachment: geoadmin_bidi_fail.png added

No overlay

comment:1 by springmeyer, 15 years ago

Has patch: set
Needs tests: set

It appears that when the LANGUAGE_CODE is set to a right-to-left language (noted in http://code.djangoproject.com/browser/django/trunk/django/conf/global_settings.py#L98 LANGUAGES_BIDI]) OpenLayers vectors are not plotted in a visible location. This problem is noted here: http://trac.openlayers.org/ticket/1778 and is prompted by the insertion of the dir="rtl" in the <html> element by the Admin App when a rtl language is requested.

It can be avoided by adding dir="ltr" in the OL map div. The patch attached that does this.

by springmeyer, 15 years ago

Attachment: geoadmin_rtl_fix.patch added

Patch to force any OpenLayers map to maintain ltr text ordering

comment:2 by springmeyer, 15 years ago

Cc: dane.springmeyer@… added

by jbronn, 15 years ago

Attachment: geoadmin_rtl_fix_v2.diff added

comment:3 by jbronn, 15 years ago

Resolution: fixed
Status: newclosed

(In [9733]) Fixed #9278, #9694 -- Geographic overlays now display in admin with right to left langauges; simplified transformation process in OpenLayersWidget to fix Ubuntu 8.10/Apache 2.2.9 crash; updated OpenLayers version to 2.7.

comment:4 by jbronn, 15 years ago

(In [9734]) [1.0.X] Fixed #9278, #9694 -- Geographic overlays now display in admin with right to left langauges; simplified transformation process in OpenLayersWidget to fix Ubuntu 8.10/Apache 2.2.9 crash; updated OpenLayers version to 2.7.

Backport of r9733 from trunk.

comment:5 by (none), 15 years ago

milestone: post-1.0

Milestone post-1.0 deleted

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