#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)
Change History (8)
by , 17 years ago
| Attachment: | geoadmin_bidi_fail.png added |
|---|
comment:1 by , 17 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 , 17 years ago
| Attachment: | geoadmin_rtl_fix.patch added |
|---|
Patch to force any OpenLayers map to maintain ltr text ordering
comment:2 by , 17 years ago
| Cc: | added |
|---|
by , 17 years ago
| Attachment: | geoadmin_rtl_fix_v2.diff added |
|---|
comment:3 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
No overlay