diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index 10682347a..aabfb37b1 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -18,7 +18,7 @@ {% if book.authors %}
- {% if book.physical_format %}{{ book.physical_format | title }}{% if book.pages %},
{% endif %}{% endif %}
- {% if book.pages %}{{ book.pages }} pages{% endif %}
+ {% if book.physical_format and not book.pages %}
+ {{ book.physical_format | title }}
+ {% elif book.physical_format and book.pages %}
+ {% blocktrans with format=book.physical_format|title pages=book.pages %}{{ format }}, {{ pages }} pages{% endblocktrans %}
+ {% elif book.pages %}
+ {% blocktrans with pages=book.pages %}{{ pages }} pages{% endblocktrans %}
+ {% endif %}
{{ book.parent_work.editions.count }} editions
+{% blocktrans with path=book.parent_work.local_path count=book.parent_work.editions.count %}{{ count }} editions{% endblocktrans %}
{% endif %}- This edition is on your {{ shelf.shelf.name }} shelf. + {% blocktrans with path=shelf.shelf.local_path shelf_name=shelf.shelf.name %}This edition is on your {{ shelf_name }} shelf.{% endblocktrans %} {% include 'snippets/shelf_selector.html' with current=shelf.shelf %}
{% endfor %} {% for shelf in other_edition_shelves %}- A different edition of this book is on your {{ shelf.shelf.name }} shelf. + {% blocktrans with book_path=shelf.book.local_path shelf_path=shelf.shelf.local_path shelf_name=shelf.shelf.name %}A different edition of this book is on your {{ shelf_name }} shelf.{% endblocktrans %} {% include 'snippets/switch_edition_button.html' with edition=book %}
{% endfor %} diff --git a/bookwyrm/templates/lists/lists.html b/bookwyrm/templates/lists/lists.html index 795db6fbb..f7ab020aa 100644 --- a/bookwyrm/templates/lists/lists.html +++ b/bookwyrm/templates/lists/lists.html @@ -29,7 +29,7 @@ {% endif %} {% if request.user.list_set.count > 4 %} - See all {{ request.user.list_set.count}} lists + {% blocktrans with size=request.user.list_set.count %}See all {{ size }} lists{% endblocktrans %} {% endif %} {% endif %}