Skip to content

Commit

Permalink
Internationalize layer switcher "Stations" item
Browse files Browse the repository at this point in the history
  • Loading branch information
aptiko committed Mar 1, 2021
1 parent bc71173 commit 4ed819b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion enhydris/static/js/enhydris.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enhydris.map = {
setupStationsLayer() {
this.stationsLayer = enhydris.stationsLayer.create();
this.leafletMap.addLayer(this.stationsLayer);
this.layerControl.addOverlay(this.stationsLayer, 'Stations');
this.layerControl.addOverlay(this.stationsLayer, enhydris.strStations);
this.stationsLayer.fillWithStations();
},

Expand Down
2 changes: 2 additions & 0 deletions enhydris/templates/enhydris/base/main_with_map-default.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% extends "enhydris/base/main.html" %}
{% load static %}
{% load i18n %}

{% block body_onload %}
{{ block.super }};
Expand All @@ -14,6 +15,7 @@
enhydris.mapDefaultBaseLayer = "{{ map_default_base_layer|safe }}";
enhydris.mapViewport = {{ map_viewport|safe }};
enhydris.searchString = {{ searchString|safe }};
enhydris.strStations = '{% trans "Stations" %}';
</script>
{% endblock %}
{% endblock %}

0 comments on commit 4ed819b

Please sign in to comment.