fix: trim translate blocks contents to ease translations
This commit is contained in:
parent
63a213a95f
commit
8eec5e7d12
2 changed files with 4 additions and 4 deletions
|
@ -95,7 +95,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<span class="current">
|
<span class="current">
|
||||||
{% blocktranslate with maps_number=maps.number num_pages=maps.paginator.num_pages %}
|
{% blocktranslate with maps_number=maps.number num_pages=maps.paginator.num_pages trimmed %}
|
||||||
Page {{ maps_number }} of {{ num_pages }}
|
Page {{ maps_number }} of {{ num_pages }}
|
||||||
{% endblocktranslate %}
|
{% endblocktranslate %}
|
||||||
</span>
|
</span>
|
||||||
|
@ -110,12 +110,12 @@
|
||||||
{# djlint:on #}
|
{# djlint:on #}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span>
|
<span>
|
||||||
{% blocktranslate with per_page=maps.paginator.per_page %}
|
{% blocktranslate with per_page=maps.paginator.per_page trimmed %}
|
||||||
Lines per page: {{ per_page }}
|
Lines per page: {{ per_page }}
|
||||||
{% endblocktranslate %}
|
{% endblocktranslate %}
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
{% blocktranslate with count=maps.paginator.count %}
|
{% blocktranslate with count=maps.paginator.count trimmed %}
|
||||||
{{ count }} maps
|
{{ count }} maps
|
||||||
{% endblocktranslate %}
|
{% endblocktranslate %}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<a href="{% url 'user_download' %}?{% spaceless %}
|
<a href="{% url 'user_download' %}?{% spaceless %}
|
||||||
{% for map_inst in maps %}map_id={{ map_inst.pk }}{% if not forloop.last %}&{% endif %}{% endfor %}
|
{% for map_inst in maps %}map_id={{ map_inst.pk }}{% if not forloop.last %}&{% endif %}{% endfor %}
|
||||||
{% endspaceless %}" class="button button-download"
|
{% endspaceless %}" class="button button-download"
|
||||||
>{% blocktranslate with count=maps.object_list|length %}
|
>{% blocktranslate with count=maps.object_list|length trimmed %}
|
||||||
Download {{ count }} maps
|
Download {{ count }} maps
|
||||||
{% endblocktranslate %}
|
{% endblocktranslate %}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue