From a4ea4082e68dca33cf89293c5aea595ef4167115 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 12 May 2023 15:33:51 +0200 Subject: [PATCH] Use the translated shelf name in message when another edition is shelved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the page for an edition, if the user has a different edition of the same work on a shelf then a message is shown. Previously the name of the status shelves wasn’t being translated. --- bookwyrm/templates/book/book.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index eb49595ff..e24f81d79 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -256,7 +256,7 @@ {% endif %} {% for shelf in other_edition_shelves %}

- {% 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 %} + {% blocktrans with book_path=shelf.book.local_path shelf_path=shelf.shelf.local_path shelf_name=shelf.shelf|translate_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 %}