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 %}
|
||||
|
||||
<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 }}
|
||||
{% endblocktranslate %}
|
||||
</span>
|
||||
|
@ -110,12 +110,12 @@
|
|||
{# djlint:on #}
|
||||
{% endif %}
|
||||
<span>
|
||||
{% blocktranslate with per_page=maps.paginator.per_page %}
|
||||
{% blocktranslate with per_page=maps.paginator.per_page trimmed %}
|
||||
Lines per page: {{ per_page }}
|
||||
{% endblocktranslate %}
|
||||
</span>
|
||||
<span>
|
||||
{% blocktranslate with count=maps.paginator.count %}
|
||||
{% blocktranslate with count=maps.paginator.count trimmed %}
|
||||
{{ count }} maps
|
||||
{% endblocktranslate %}
|
||||
</span>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<a href="{% url 'user_download' %}?{% spaceless %}
|
||||
{% for map_inst in maps %}map_id={{ map_inst.pk }}{% if not forloop.last %}&{% endif %}{% endfor %}
|
||||
{% endspaceless %}" class="button button-download"
|
||||
>{% blocktranslate with count=maps.object_list|length %}
|
||||
>{% blocktranslate with count=maps.object_list|length trimmed %}
|
||||
Download {{ count }} maps
|
||||
{% endblocktranslate %}
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue