fix: trim translate blocks contents to ease translations

This commit is contained in:
David Larlet 2024-02-09 10:18:57 -05:00
parent 63a213a95f
commit 8eec5e7d12
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD
2 changed files with 4 additions and 4 deletions

View file

@ -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>

View file

@ -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>