Ticket #16387: 16387-1.diff

File 16387-1.diff, 1.2 KB (added by Claude Paroz, 13 years ago)

Disable number localization in openlayers.js

  • django/contrib/gis/templates/gis/admin/openlayers.js

    diff --git a/django/contrib/gis/templates/gis/admin/openlayers.js b/django/contrib/gis/templates/gis/admin/openlayers.js
    index c455bff..9e296ba 100644
    a b OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.Sp  
    6868{{ module }}.clearFeatures = function (){
    6969  {{ module }}.deleteFeatures();
    7070  document.getElementById('{{ id }}').value = '';
     71  {% localize off %}
    7172  {{ module }}.map.setCenter(new OpenLayers.LonLat({{ default_lon }}, {{ default_lat }}), {{ default_zoom }});
     73  {% endlocalize %}
    7274}
    7375// Add Select control
    7476{{ module }}.addSelectControl = function(){
    OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.Sp  
    137139          {{ module }}.map.zoomTo({{ point_zoom }});
    138140      }
    139141    } else {
     142      {% localize off %}
    140143      {{ module }}.map.setCenter(new OpenLayers.LonLat({{ default_lon }}, {{ default_lat }}), {{ default_zoom }});
     144      {% endlocalize %}
    141145    }
    142146    // This allows editing of the geographic fields -- the modified WKT is
    143147    // written back to the content field (as EWKT, so that the ORM will know
Back to Top