Skip to content

Commit

Permalink
UI: marked missing i18n strings in template #117
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Feb 20, 2015
1 parent c5d1620 commit d649825
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions nodeshot/ui/default/templates/includes/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ <h5>{% trans 'Legend' %}</h5>

<script id="map-toolbar-template" type="text/template">
<a href="#" class="icon-layer-2" data-panel="fn-map-layers" title="{% trans 'Control map data' %}" data-placement="left" data-delay="200"></a>
<a href="#" class="icon-pin-add" data-toggle="tooltip" title="Add new node" data-placement="left" data-delay="200"></a>
<a href="#" class="icon-pin-add" data-toggle="tooltip" title="{% trans 'Add new node' %}" data-placement="left" data-delay="200"></a>
<% if (Ns.settings.map3d) { %>
<a href="#" id="btn-map-mode" class="icon-3d smaller" title="Toggle 3D view" data-placement="left" data-delay="200"></a>
<a href="#" id="btn-map-mode" class="icon-3d smaller" title="{% trans 'Toggle 3D view' %}" data-placement="left" data-delay="200"></a>
<% } %>
<% if (Ns.settings.mapTools) { %>
<a href="#" class="icon-tools" data-panel="fn-map-tools" title="Map tools" data-placement="left" data-delay="200"></a>
<a href="#" class="icon-tools" data-panel="fn-map-tools" title="{% trans 'Map tools' %}" data-placement="left" data-delay="200"></a>
<% } %>
<% if (Ns.settings.mapPreferences) { %>
<a href="#" class="icon-config" data-panel="fn-map-preferences" title="Map preferences" data-placement="left" data-delay="200"></a>
<a href="#" class="icon-config" data-panel="fn-map-preferences" title="{% trans 'Map preferences' %}" data-placement="left" data-delay="200"></a>
<% } %>
<a id="btn-legend" href="#" class="icon-list" title="Toggle legend" data-placement="left" data-delay="200"></a>
<a id="btn-legend" href="#" class="icon-list" title="{% trans 'Toggle legend' %}" data-placement="left" data-delay="200"></a>
</script>

<script id="map-panels-template" type="text/template">
Expand Down
4 changes: 3 additions & 1 deletion nodeshot/ui/default/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'base.html' %}
{% load i18n static nodeshot_tags %}
{% load i18n l10n static nodeshot_tags %}
{% block jstemplates %}
<script id="modal-template" type="text/template">
<div class="modal fade autocenter" id="tmp-modal" tabindex="-1">
Expand Down Expand Up @@ -273,9 +273,11 @@ <h1><%= title %></h1>
Ns.settings = {
siteName: '{{ SITE_NAME }}',
map: {
{% localize off %}
lat: {{ MAP_CENTER.0 }},
lng: {{ MAP_CENTER.1 }},
zoom: {{ MAP_ZOOM }}
{% endlocalize %}
},
votes: {{ VOTING_ENABLED }},
ratings: {{ RATING_ENABLED }},
Expand Down

0 comments on commit d649825

Please sign in to comment.