From 8eec5e7d12b4862b0838266b5e4be9d817155322 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Fri, 9 Feb 2024 10:18:57 -0500 Subject: [PATCH] fix: trim translate blocks contents to ease translations --- umap/templates/umap/map_table.html | 6 +++--- umap/templates/umap/user_dashboard.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/umap/templates/umap/map_table.html b/umap/templates/umap/map_table.html index 4134cda8..0188b377 100644 --- a/umap/templates/umap/map_table.html +++ b/umap/templates/umap/map_table.html @@ -95,7 +95,7 @@ {% endif %} - {% 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 %} @@ -110,12 +110,12 @@ {# djlint:on #} {% endif %} - {% blocktranslate with per_page=maps.paginator.per_page %} + {% blocktranslate with per_page=maps.paginator.per_page trimmed %} Lines per page: {{ per_page }} {% endblocktranslate %} - {% blocktranslate with count=maps.paginator.count %} + {% blocktranslate with count=maps.paginator.count trimmed %} {{ count }} maps {% endblocktranslate %} diff --git a/umap/templates/umap/user_dashboard.html b/umap/templates/umap/user_dashboard.html index 2ed05011..d225ff8e 100644 --- a/umap/templates/umap/user_dashboard.html +++ b/umap/templates/umap/user_dashboard.html @@ -28,7 +28,7 @@ {% blocktranslate with count=maps.object_list|length %} + >{% blocktranslate with count=maps.object_list|length trimmed %} Download {{ count }} maps {% endblocktranslate %}