From 6b6aa4255946d68da50f42fcb55112be27ca3764 Mon Sep 17 00:00:00 2001 From: RayBB Date: Sat, 28 Dec 2024 03:09:25 -0500 Subject: [PATCH] fix edition description wording --- openlibrary/i18n/messages.pot | 7 +++++++ openlibrary/templates/type/edition/view.html | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/openlibrary/i18n/messages.pot b/openlibrary/i18n/messages.pot index 461212e9bba..eb7f4f81b23 100644 --- a/openlibrary/i18n/messages.pot +++ b/openlibrary/i18n/messages.pot @@ -6569,6 +6569,13 @@ msgstr "" msgid "First published in %s" msgstr "" +#: type/edition/view.html type/work/view.html +#, python-format +msgid "" +"This work doesn't have a description yet. Can you add one?" +msgstr "" + #: type/edition/view.html type/work/view.html #, python-format msgid "" diff --git a/openlibrary/templates/type/edition/view.html b/openlibrary/templates/type/edition/view.html index 206b5e9fd41..6ce0f0a2491 100644 --- a/openlibrary/templates/type/edition/view.html +++ b/openlibrary/templates/type/edition/view.html @@ -247,7 +247,10 @@

- $:_("This edition doesn't have a description yet. Can you add one?", url=edition.url('/edit')+"#about/about") + $if page_type=="works": + $:_("This work doesn't have a description yet. Can you add one?", url=edition.url('/edit')+"#about/about") + $else: + $:_("This edition doesn't have a description yet. Can you add one?", url=edition.url('/edit')+"#edition/description")