diff options
| author | Tim Graham <timograham@gmail.com> | 2016-01-27 09:25:49 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-01-28 18:02:10 -0500 |
| commit | efd855481581b5758d866a009bbd1074e74869b4 (patch) | |
| tree | 60494dcfd68c53185ad3fd448f5674e87e8ade0c /django | |
| parent | 61452616baca63fa58efbb5991f65ba362eccbe2 (diff) | |
[1.9.x] Fixed #20415 -- Ensured srid isn't localized in OpenLayers JavaScript.
Backport of 19d1cb14519186902d7e27813bf2643fe3f7cfa3 from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/templates/gis/openlayers.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/contrib/gis/templates/gis/openlayers.html b/django/contrib/gis/templates/gis/openlayers.html index 02fa988737..81f33ae4c1 100644 --- a/django/contrib/gis/templates/gis/openlayers.html +++ b/django/contrib/gis/templates/gis/openlayers.html @@ -1,4 +1,5 @@ -<style type="text/css">{% block map_css %}{% load i18n static %}{% get_current_language_bidi as LANGUAGE_BIDI %} +{% load i18n l10n static %} +<style type="text/css">{% block map_css %}{% get_current_language_bidi as LANGUAGE_BIDI %} #{{ id }}_map { width: {{ map_width }}px; height: {{ map_height }}px; } #{{ id }}_map .aligned label { float: inherit; } #{{ id }}_div_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; } @@ -25,7 +26,7 @@ id: '{{ id }}', map_id: '{{ id }}_map', map_options: map_options, - map_srid: {{ map_srid }}, + map_srid: {{ map_srid|unlocalize }}, name: '{{ name }}' }; {% endblock %} |
