From 6a0349e575eb8e11f705e4b087dcbd279de620a5 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Tue, 13 May 2025 16:11:07 +0400 Subject: [PATCH] Preparing ServerTest.HttpSexy404HtmlError for translation --- test/server.cpp | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/test/server.cpp b/test/server.cpp index 53f57f4e..4706dfff 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -935,12 +935,26 @@ std::string expectedSexy404ErrorHtml(const std::string& url) const auto htmlSafeUrl = htmlEscape(url); const auto jsSafeUrl = escapeJsString(url); + const std::string englishText[] = { + "Page not found", + "Not found!", + "Oops. Page not found.", + "The requested path was not found:", + "The content you're looking for may still be available, but it might be located at a different place within the ZIM file.", + "Please:", + "Try using the search function to find the content you want", + "Look for keywords or titles related to the information you're seeking", + "This approach should help you locate the desired content, even if the original link isn't working properly." + }; + + const std::string* const t = englishText; + return R"RAWSTRINGLITERAL( - Page not found + )RAWSTRINGLITERAL" + t[0] + R"RAWSTRINGLITERAL(