Merge pull request #2631 from rritik772/pluralization-error

fixed singularisation/pluralisation
This commit is contained in:
Mouse Reeve 2023-07-17 05:46:34 -07:00 committed by GitHub
commit 815e788245
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,18 @@
{% if site.imports_enabled %} {% if site.imports_enabled %}
{% if import_size_limit and import_limit_reset %} {% if import_size_limit and import_limit_reset %}
<div class="notification"> <div class="notification">
<p>{% blocktrans %}Currently you are allowed to import {{ import_size_limit }} books every {{ import_limit_reset }} days.{% endblocktrans %}</p> <p>
{% blocktrans count books=import_size_limit%}
Currently you are allowed to import {{ import_size_limit }} book
{% plural %}
Currently you are allowed to import {{ import_size_limit }} books
{% endblocktrans %}
{% blocktrans count days=import_limit_reset%}
every {{ import_limit_reset }} day.
{% plural %}
every {{ import_limit_reset }} days.
{% endblocktrans %}
</p>
<p>{% blocktrans %}You have {{ allowed_imports }} left.{% endblocktrans %}</p> <p>{% blocktrans %}You have {{ allowed_imports }} left.{% endblocktrans %}</p>
</div> </div>
{% endif %} {% endif %}