Skip to content

Commit

Permalink
fix edition description wording
Browse files Browse the repository at this point in the history
  • Loading branch information
RayBB committed Dec 28, 2024
1 parent 81681fb commit 6b6aa42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions openlibrary/i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b><a "
"href='%(url)s'>add one</a></b>?"
msgstr ""

#: type/edition/view.html type/work/view.html
#, python-format
msgid ""
Expand Down
5 changes: 4 additions & 1 deletion openlibrary/templates/type/edition/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@
<div class="book-description">
<div class="book-description-content">
<p class="workHelp">
$:_("This edition doesn't have a description yet. Can you <b><a href='%(url)s'>add one</a></b>?", url=edition.url('/edit')+"#about/about")
$if page_type=="works":
$:_("This work doesn't have a description yet. Can you <b><a href='%(url)s'>add one</a></b>?", url=edition.url('/edit')+"#about/about")
$else:
$:_("This edition doesn't have a description yet. Can you <b><a href='%(url)s'>add one</a></b>?", url=edition.url('/edit')+"#edition/description")
</p>
</div>
</div>
Expand Down

0 comments on commit 6b6aa42

Please sign in to comment.