From 527a606281f382f3d22bee3afd078e973752700c Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Sun, 30 Jan 2022 21:44:44 +0400 Subject: [PATCH] Testing the translation of "Go to random page" The new test fails since the "Go to random page" button is not yet internationalized. --- test/server.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/server.cpp b/test/server.cpp index ca44875d8..de0d78e78 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -537,6 +537,10 @@ std::string TestContentIn404HtmlResponse::taskbarLinks() const ? "Դեպի '" + bookTitle + "'֊ի գլխավոր էջը" : "Go to the main page of '" + bookTitle + "'"; + const std::string goToRandomPage = isTranslatedVersion() + ? "Բացել պատահական էջ" + : "Go to a randomly selected page"; + return R"( - )";