mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-10-31 22:19:00 +00:00
Splited stirng into two then fixed pluralization error.
This commit is contained in:
parent
fc599f8b9a
commit
e5e9e807ca
2 changed files with 8 additions and 4 deletions
|
@ -17,7 +17,14 @@
|
|||
{% if site.imports_enabled %}
|
||||
{% if import_size_limit and import_limit_reset %}
|
||||
<div class="notification">
|
||||
<p>{% blocktrans %}Currently you are allowed to import {{ import_size_limit }} {{book_noun}} every {{ import_limit_reset }} {{day_noun}}.{% endblocktrans %}</p>
|
||||
<p>
|
||||
{% blocktrans count books=import_size_limit%}
|
||||
Currently you are allowed to import {{ import_size_limit }} {{books}}
|
||||
{% endblocktrans %}
|
||||
{% blocktrans count days=import_limit_reset%}
|
||||
every {{ import_limit_reset }} {{days}}.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<p>{% blocktrans %}You have {{ allowed_imports }} left.{% endblocktrans %}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -64,9 +64,6 @@ class Import(View):
|
|||
data["import_limit_reset"] = site_settings.import_limit_reset
|
||||
data["allowed_imports"] = site_settings.import_size_limit - imported_books
|
||||
|
||||
data["book_noun"] = "books" if site_settings.import_size_limit > 1 else 'book'
|
||||
data["day_noun"] = "days" if site_settings.import_limit_reset > 1 else 'day'
|
||||
|
||||
return TemplateResponse(request, "import/import.html", data)
|
||||
|
||||
def post(self, request):
|
||||
|
|
Loading…
Reference in a new issue