From b9ad86071622b0e12cc5ff7fccc4e094785891fb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 25 Jan 2021 22:44:38 -0800 Subject: i18n: use babel.numbers.format_number() in web interface --- fatcat_scholar/templates/search.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fatcat_scholar/templates/search.html') 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 @@ {% if hits %} - {{ "{:,}".format(hits.count_found) }} + {{ babel_numbers.format_number(hits.count_found, locale=locale) }} {% trans trimmed count=hits.count_found %} Hit {% pluralize %} @@ -72,7 +72,7 @@ {% set count_size = "2.0em" %} {% endif %} - {{ "{:,}".format(hits.count_found) }} + {{ babel_numbers.format_number(hits.count_found, locale=locale) }} {% trans trimmed count=hits.count_found %} Hit @@ -122,7 +122,7 @@ {% if hits.offset != 0 %}
- {{ search_macros.search_pagination(hits) }} + {{ search_macros.search_pagination(hits, locale=locale) }}
{% endif %} @@ -136,7 +136,7 @@ {% if hits.count_found > hits.limit %}
- {{ search_macros.search_pagination(hits) }} + {{ search_macros.search_pagination(hits, locale=locale) }}
{% endif %} -- cgit v1.2.3