mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-06 15:28:53 +00:00
fixed singularisation/pluralisation
edited two files
This commit is contained in:
parent
48ac90a984
commit
fc599f8b9a
2 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
{% 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 %}Currently you are allowed to import {{ import_size_limit }} {{book_noun}} every {{ import_limit_reset }} {{day_noun}}.{% endblocktrans %}</p>
|
||||||
<p>{% blocktrans %}You have {{ allowed_imports }} left.{% endblocktrans %}</p>
|
<p>{% blocktrans %}You have {{ allowed_imports }} left.{% endblocktrans %}</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -64,6 +64,9 @@ class Import(View):
|
||||||
data["import_limit_reset"] = site_settings.import_limit_reset
|
data["import_limit_reset"] = site_settings.import_limit_reset
|
||||||
data["allowed_imports"] = site_settings.import_size_limit - imported_books
|
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)
|
return TemplateResponse(request, "import/import.html", data)
|
||||||
|
|
||||||
def post(self, request):
|
def post(self, request):
|
||||||
|
|
Loading…
Reference in a new issue