Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 12, 2024
1 parent b26342a commit d34e71e
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 20 deletions.
79 changes: 62 additions & 17 deletions openlibrary/i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1088,17 +1088,13 @@ msgstr ""
msgid "%(title)s - search"
msgstr ""

#: admin/inspect/store.html search/lists.html work_search.html
msgid "No results found."
msgstr ""

#: search/lists.html work_search.html
#: work_search.html
#, python-format
msgid "Search for books containing the phrase \"%s\"?"
msgid "No <strong>%(path_id)s</strong> directly matched your search"
msgstr ""

#: work_search.html
msgid "Add a new book to Open Library?"
#: search/authors.html search/lists.html search/subjects.html work_search.html
msgid "Checking Search Inside matches"
msgstr ""

#: account/reading_log.html search/authors.html search/subjects.html
Expand Down Expand Up @@ -1552,8 +1548,8 @@ msgstr ""
msgid "Thanks!"
msgstr ""

#: BookByline.html SearchResultsWork.html account/notes.html
#: account/observations.html
#: BookByline.html FulltextSearchSuggestionItem.html SearchResultsWork.html
#: account/notes.html account/observations.html
msgid "Unknown author"
msgstr ""

Expand Down Expand Up @@ -2766,6 +2762,10 @@ msgstr ""
msgid "Json"
msgstr ""

#: admin/inspect/store.html
msgid "No results found."
msgstr ""

#: admin/ip/index.html
msgid "[Admin Center] IP Addresses"
msgstr ""
Expand Down Expand Up @@ -3785,10 +3785,10 @@ msgstr ""
msgid "Links"
msgstr ""

#: IABook.html SearchResultsWork.html books/edition-sort.html
#: jsdef/LazyWorkPreview.html lists/list_overview.html lists/preview.html
#: lists/snippet.html lists/widget.html my_books/dropdown_content.html
#: type/work/editions.html
#: FulltextSearchSuggestionItem.html IABook.html SearchResultsWork.html
#: books/edition-sort.html jsdef/LazyWorkPreview.html lists/list_overview.html
#: lists/preview.html lists/snippet.html lists/widget.html
#: my_books/dropdown_content.html type/work/editions.html
#, python-format
msgid "Cover of: %(title)s"
msgstr ""
Expand Down Expand Up @@ -6165,7 +6165,7 @@ msgid "Merge authors"
msgstr ""

#: search/authors.html
msgid "No hits"
msgid "No <strong>authors</strong> directly matched your search"
msgstr ""

#: search/inside.html
Expand All @@ -6179,8 +6179,7 @@ msgid "Search Inside"
msgstr ""

#: search/inside.html
#, python-format
msgid "No hits for: %(query)s"
msgid "No <strong>Search Inside</strong> text matched your search"
msgstr ""

#: search/inside.html
Expand All @@ -6205,6 +6204,10 @@ msgstr ""
msgid "Search Lists"
msgstr ""

#: search/lists.html
msgid "No <strong>lists</strong> directly matched your search"
msgstr ""

#: search/publishers.html
msgid "Publishers Search"
msgstr ""
Expand Down Expand Up @@ -6270,6 +6273,10 @@ msgstr ""
msgid "Search Subjects"
msgstr ""

#: search/subjects.html
msgid "No <strong>subjects</strong> directly matched your search"
msgstr ""

#: search/subjects.html
msgid "time"
msgstr ""
Expand Down Expand Up @@ -7389,10 +7396,48 @@ msgstr ""
msgid "Expires"
msgstr ""

#: FulltextSearchSuggestion.html
msgid "Checking for Search Inside matches"
msgstr ""

#: FulltextSearchSuggestion.html
msgid "Search Inside Icon"
msgstr ""

#: FulltextSearchSuggestion.html
msgid "search inside icon"
msgstr ""

#: FulltextSearchSuggestion.html
msgid "Search Inside</a> found these books with matching passages..."
msgstr ""

#: FulltextSearchSuggestion.html
#, python-format
msgid "See all %(results_count)s Search Inside Matches"
msgstr ""

#: FulltextSearchSuggestion.html
msgid "right chevron"
msgstr ""

#: FulltextSnippet.html
msgid "See All Results"
msgstr ""

#: FulltextSuggestionSnippet.html
msgid "❝"
msgstr ""

#: FulltextSuggestionSnippet.html
msgid "❞"
msgstr ""

#: FulltextSuggestionSnippet.html
#, python-format
msgid "Page: %(page)s"
msgstr ""

#: IABook.html
#, python-format
msgid "Borrowed from Internet Archive: %(title)s"
Expand Down
6 changes: 3 additions & 3 deletions openlibrary/plugins/openlibrary/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,9 +1121,9 @@ def GET(self):
if not hits['hits']:
macro = '<div></div>'
else:
macro = web.template.Template.globals['macros'].FulltextSearchSuggestion(
query, data
)
macro = web.template.Template.globals[
'macros'
].FulltextSearchSuggestion(query, data)
partial = {"partials": str(macro)}

return delegate.RawText(json.dumps(partial))
Expand Down

0 comments on commit d34e71e

Please sign in to comment.