diff --git a/openlibrary/i18n/messages.pot b/openlibrary/i18n/messages.pot index ef7dd136ba2..94e4172a36f 100644 --- a/openlibrary/i18n/messages.pot +++ b/openlibrary/i18n/messages.pot @@ -507,9 +507,9 @@ msgstr "" msgid "See more books by, and learn about, this author" msgstr "" -#: account/loans.html authors/index.html publishers/view.html -#: search/authors.html search/publishers.html search/subjects.html -#: subjects.html +#: account/loans.html authors/index.html lists/showcase.html +#: publishers/view.html search/authors.html search/publishers.html +#: search/subjects.html subjects.html #, python-format msgid "%(count)d book" msgid_plural "%(count)d books" @@ -4481,6 +4481,15 @@ msgstr "" msgid "by You" msgstr "" +#: lists/showcase.html +#, python-format +msgid "My Lists (%(count)d)" +msgstr "" + +#: lists/showcase.html +msgid "You have no lists." +msgstr "" + #: lists/widget.html #, python-format msgid "%(count)d List" diff --git a/openlibrary/templates/lists/showcase.html b/openlibrary/templates/lists/showcase.html index 189f06e8c49..cdda94dfc94 100644 --- a/openlibrary/templates/lists/showcase.html +++ b/openlibrary/templates/lists/showcase.html @@ -1,46 +1,45 @@ -$def with (lists = [], username = "") +$def with (lists, username) -$ default_image_url = "/images/icons/avatar_book-sm.png" -$ total_lists = lists[0:min(len(lists), 5)] -$ all_lists_url = "/people/%s/lists" % username - -$def showcase(list): +$def list_card(list): $ cached_info = list.get_patron_showcase() - $ title = cached_info["title"] if len(cached_info["title"]) < 16 else cached_info["title"][0:16] + "..." $ count = cached_info["count"] - $ list_url = list.get_url() - $ cover_urls = [cover_url if cover_url else default_image_url for cover_url in cached_info["covers"]] -
$title
- $if count == 1: -$count book
- $else: -$count books
-You have no lists.
+$_('You have no lists.')