Skip to content

Commit 7497429

Browse files
committed
Fixed localization issues in leaflet/widget.html
1 parent ba69a5a commit 7497429

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

leaflet/templates/leaflet/widget.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% load leaflet_tags %}
2-
{% load static from staticfiles %}
2+
{% load static from staticfiles l10n %}
33

44
<style type="text/css">{% block map_css %}
5-
{% if map_width and map_height %}#{{ id_map }} { width: {{ map_width }}; height: {{ map_height }}; }{% endif %}
5+
{% if map_width and map_height %}#{{ id_map }} { width: {{ map_width|unlocalize }}; height: {{ map_height|unlocalize }}; }{% endif %}
66
{% if not display_raw %}#{{ id_css }} { display: none; }{% endif %}
77
{% endblock map_css %}
88
</style>
@@ -12,7 +12,7 @@
1212
{{ module }}.fieldid = '{{ id_css }}';
1313
{{ module }}.modifiable = {{ modifiable|yesno:"true,false" }};
1414
{{ module }}.geom_type = '{{ geom_type }}';
15-
{{ module }}.srid = {{ map_srid }};
15+
{{ module }}.srid = {{ map_srid|unlocalize }};
1616
{% endblock vars %}
1717

1818
function {{ id_map_callback }}(map, options) {

0 commit comments

Comments
 (0)