diff --git a/static/i18n/test.json b/static/i18n/test.json index decb1845f..a96eac241 100644 --- a/static/i18n/test.json +++ b/static/i18n/test.json @@ -4,17 +4,17 @@ "Kareyac" ] }, - "name": "Հայերեն", - "suggest-full-text-search": "որոնել '{{{SEARCH_TERMS}}}'...", - "no-such-book": "Գիրքը բացակայում է՝ {{BOOK_NAME}}", - "url-not-found": "Սխալ հասցե՝ {{url}}", - "suggest-search": "Որոնել {{PATTERN}}", - "400-page-title": "Անվավեր հարցում", - "400-page-heading": "Անվավեր հարցում", - "404-page-title": "Սխալ հասցե", - "404-page-heading": "Սխալ հասցե", - "library-button-text": "Գրադարանի էջ", - "home-button-text": "Դեպի '{{BOOK_TITLE}}'֊ի գլխավոր էջը", - "random-page-button-text": "Բացել պատահական էջ", - "searchbox-tooltip": "Որոնել '{{BOOK_TITLE}}'֊ում" + "name": "Fake language for i18n testing" + , "suggest-full-text-search": "[I18N TESTING] cOnTaInInG '{{{SEARCH_TERMS}}}'..." + , "no-such-book": "[I18N TESTING] No such book: {{BOOK_NAME}}. Sorry." + , "url-not-found": "[I18N TESTING] URL not found: {{url}}" + , "suggest-search": "[I18N TESTING] Make a full text search for {{PATTERN}}" + , "400-page-title": "[I18N TESTING] Invalid request ($400 fine must be paid)" + , "400-page-heading": "[I18N TESTING] -400 karma for an invalid request" + , "404-page-title": "[I18N TESTING] Not Found - Try Again" + , "404-page-heading": "[I18N TESTING] Content not found, but at least the server is alive" + , "library-button-text": "[I18N TESTING] Navigate to the welcome page" + , "home-button-text": "[I18N TESTING] Jump to the main page of '{{BOOK_TITLE}}'" + , "random-page-button-text": "[I18N TESTING] I am tired of determinism" + , "searchbox-tooltip": "[I18N TESTING] Let's search in '{{BOOK_TITLE}}'" } diff --git a/test/server.cpp b/test/server.cpp index ff5f220aa..3d4cf7581 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -612,11 +612,11 @@ TEST_F(ServerTest, Http404HtmlError) )" }, { /* url */ "/ROOT/random?content=non-existent-book&userlang=test", - expected_page_title=="Սխալ հասցե" && + expected_page_title=="[I18N TESTING] Not Found - Try Again" && expected_body==R"( -
- Գիրքը բացակայում է՝ non-existent-book + [I18N TESTING] No such book: non-existent-book. Sorry.
)" }, @@ -637,11 +637,11 @@ TEST_F(ServerTest, Http404HtmlError) )" }, { /* url */ "/ROOT/catalog/?userlang=test", - expected_page_title=="Սխալ հասցե" && + expected_page_title=="[I18N TESTING] Not Found - Try Again" && expected_body==R"( -- Սխալ հասցե՝ /ROOT/catalog/ + [I18N TESTING] URL not found: /ROOT/catalog/
)" }, @@ -654,11 +654,11 @@ TEST_F(ServerTest, Http404HtmlError) )" }, { /* url */ "/ROOT/catalog/invalid_endpoint?userlang=test", - expected_page_title=="Սխալ հասցե" && + expected_page_title=="[I18N TESTING] Not Found - Try Again" && expected_body==R"( -- Սխալ հասցե՝ /ROOT/catalog/invalid_endpoint + [I18N TESTING] URL not found: /ROOT/catalog/invalid_endpoint
)" }, @@ -711,16 +711,16 @@ TEST_F(ServerTest, Http404HtmlError) )" }, { /* url */ "/ROOT/content/zimfile/invalid-article?userlang=test", - expected_page_title=="Սխալ հասցե" && + expected_page_title=="[I18N TESTING] Not Found - Try Again" && book_name=="zimfile" && book_title=="Ray Charles" && expected_body==R"( -- Սխալ հասցե՝ /ROOT/content/zimfile/invalid-article + [I18N TESTING] URL not found: /ROOT/content/zimfile/invalid-article
- Որոնել invalid-article + [I18N TESTING] Make a full text search for invalid-article
)" }, @@ -1003,7 +1003,7 @@ TEST_F(ServerTest, UserLanguageControl) { /*url*/ "/ROOT/content/zimfile/invalid-article?userlang=test", /*Accept-Language:*/ "", - /* expected