mirror of https://github.com/kiwix/libkiwix.git
Internationalized "Fulltext search unavailable" page
This commit is contained in:
parent
fbd23a8329
commit
6f3db20078
|
@ -457,11 +457,6 @@ ParameterizedMessage noSuchBookErrorMsg(const std::string& bookName)
|
|||
return ParameterizedMessage("no-such-book", { {"BOOK_NAME", bookName} });
|
||||
}
|
||||
|
||||
std::string noSearchResultsMsg()
|
||||
{
|
||||
return "The fulltext search engine is not available for this content.";
|
||||
}
|
||||
|
||||
ParameterizedMessage invalidRawAccessMsg(const std::string& dt)
|
||||
{
|
||||
return ParameterizedMessage("invalid-raw-data-type", { {"DATATYPE", dt} });
|
||||
|
@ -631,7 +626,7 @@ std::unique_ptr<Response> InternalServer::handle_search(const RequestContext& re
|
|||
"fulltext-search-unavailable",
|
||||
"404-page-heading",
|
||||
m_root + "/skin/search_results.css")
|
||||
+ noSearchResultsMsg()
|
||||
+ nonParameterizedMessage("no-search-results")
|
||||
+ TaskbarInfo(searchInfo.bookName, archive.get());
|
||||
}
|
||||
|
||||
|
|
|
@ -18,4 +18,5 @@
|
|||
, "500-page-title" : "Internal Server Error"
|
||||
, "500-page-heading" : "Internal Server Error"
|
||||
, "fulltext-search-unavailable" : "Fulltext search unavailable"
|
||||
, "no-search-results": "The fulltext search engine is not available for this content."
|
||||
}
|
||||
|
|
|
@ -19,4 +19,5 @@
|
|||
, "500-page-title" : "Title of the 500 error page"
|
||||
, "500-page-heading" : "Heading of the 500 error page"
|
||||
, "fulltext-search-unavailable" : "Title of the error page returned when search is attempted in a book without fulltext search database"
|
||||
, "no-search-results": "Text of the error page returned when search is attempted in a book without fulltext search database"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue