summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search.html
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/templates/search.html')
-rw-r--r--fatcat_scholar/templates/search.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html
index 2010f0e..164b7fd 100644
--- a/fatcat_scholar/templates/search.html
+++ b/fatcat_scholar/templates/search.html
@@ -43,7 +43,7 @@
</details>
{% if hits %}
- <span class="hit-count" style="font-size: 1.5em;">{{ "{:,}".format(hits.count_found) }}</span>
+ <span class="hit-count" style="font-size: 1.5em;">{{ babel_numbers.format_number(hits.count_found, locale=locale) }}</span>
{% trans trimmed count=hits.count_found %}
Hit
{% pluralize %}
@@ -72,7 +72,7 @@
{% set count_size = "2.0em" %}
{% endif %}
<span class="hit-count" style="display: block; font-size: {{ count_size }};">
- {{ "{:,}".format(hits.count_found) }}
+ {{ babel_numbers.format_number(hits.count_found, locale=locale) }}
</span>
{% trans trimmed count=hits.count_found %}
Hit
@@ -122,7 +122,7 @@
{% if hits.offset != 0 %}
<div style="margin-bottom: 2em; width: 100%;">
<div class="search-pagination">
- {{ search_macros.search_pagination(hits) }}
+ {{ search_macros.search_pagination(hits, locale=locale) }}
</div>
</div>
{% endif %}
@@ -136,7 +136,7 @@
{% if hits.count_found > hits.limit %}
<div style="margin-top: 2em; width: 100%;">
<div class="search-pagination">
- {{ search_macros.search_pagination(hits) }}
+ {{ search_macros.search_pagination(hits, locale=locale) }}
</div>
</div>
{% endif %}