Formats large numbers

This commit is contained in:
Mouse Reeve 2023-07-17 05:53:23 -07:00
parent fbb6c41035
commit 6778046906

View file

@ -18,13 +18,13 @@
{% if import_size_limit and import_limit_reset %} {% if import_size_limit and import_limit_reset %}
<div class="notification"> <div class="notification">
<p> <p>
{% blocktrans count days=import_limit_reset%} {% blocktrans count days=import_limit_reset with display_size=import_size_limit|intcomma %}
Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} day. Currently, you are allowed to import {{ display_size }} books every {{ import_limit_reset }} day.
{% plural %} {% plural %}
Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days. Currently, you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<p>{% blocktrans %}You have {{ allowed_imports }} left.{% endblocktrans %}</p> <p>{% blocktrans with display_left=allowed_imports|intcomma %}You have {{ display_left }} left.{% endblocktrans %}</p>
</div> </div>
{% endif %} {% endif %}
{% if recent_avg_hours or recent_avg_minutes %} {% if recent_avg_hours or recent_avg_minutes %}