Move translations to filter

This commit is contained in:
Mouse Reeve
2022-02-28 11:05:12 -08:00
parent ab1c7c6d0a
commit 0f5fd6be15
2 changed files with 21 additions and 11 deletions

View File

@ -1,12 +1,4 @@
{% load i18n %}
{% if shelf.identifier == 'all' %}
{% trans "All books" %}
{% elif shelf.identifier == 'to-read' %}
{% trans "To Read" %}
{% elif shelf.identifier == 'reading' %}
{% trans "Currently Reading" %}
{% elif shelf.identifier == 'read' %}
{% trans "Read" %}
{% else %}
{{ shelf.name }}
{% endif %}
{% load shelf_tags %}
{{ shelf|translate_shelf_name }}