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 %}

- by {% include 'snippets/authors.html' with book=book %} + {% trans "by" %} {% include 'snippets/authors.html' with book=book %}

{% endif %} @@ -78,8 +78,13 @@

- {% 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 %}

{% if book.openlibrary_key %} @@ -90,7 +95,14 @@
-

{% include 'snippets/stars.html' with rating=rating %} ({{ review_count }} review{{ review_count|pluralize }})

+

+ {% include 'snippets/stars.html' with rating=rating %} + {% blocktrans count counter=review_count %} + ({{ review_count }} review) + {% plural %} + ({{ review_count }} reviews) + {% endblocktrans %} +

{% include 'snippets/trimmed_text.html' with full=book|book_description %} @@ -116,7 +128,7 @@ {% if book.parent_work.editions.count > 1 %} -

{{ book.parent_work.editions.count }} editions

+

{% blocktrans with path=book.parent_work.local_path count=book.parent_work.editions.count %}{{ count }} editions{% endblocktrans %}

{% endif %}
@@ -124,13 +136,13 @@
{% for shelf in user_shelves %}

- 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 %}