summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-25 22:44:38 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-25 22:44:38 -0800
commitb9ad86071622b0e12cc5ff7fccc4e094785891fb (patch)
treecb566c0c5005b48d5260a56786a0e0e123b58548 /fatcat_scholar/templates/search.html
parent9e73da0e40f7cf38de0ae3413fdf0d202493525d (diff)
downloadfatcat-scholar-b9ad86071622b0e12cc5ff7fccc4e094785891fb.tar.gz
fatcat-scholar-b9ad86071622b0e12cc5ff7fccc4e094785891fb.zip
i18n: use babel.numbers.format_number() in web interface
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 %}