From 666f09c576b799e4e8027fdfd3d3362f5b93135d Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 15 May 2023 11:26:12 +0200 Subject: [PATCH] =?UTF-8?q?Use=20the=20translated=20shelf=20name=20in=20th?= =?UTF-8?q?e=20=E2=80=9Cremove=20from=E2=80=9D=20shelf=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The button to remove a book from a shelf when looking at the book’s page wasn’t using the translated shelf name. It was also concatenating strings instead of using a placeholder, which is difficult to translate in some languages. This fixes it to use the translate_shelf_name function and use the same placeholder string as in other places. --- bookwyrm/templates/snippets/shelf_selector.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/snippets/shelf_selector.html b/bookwyrm/templates/snippets/shelf_selector.html index 902a66196..d0b5645d4 100644 --- a/bookwyrm/templates/snippets/shelf_selector.html +++ b/bookwyrm/templates/snippets/shelf_selector.html @@ -91,7 +91,9 @@ {% csrf_token %} - + {% endif %}