From b2526c7a980314369d3614e26d1fc8ef426d8042 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Thu, 24 Mar 2022 19:41:18 +0400 Subject: [PATCH] Translation of the url-not-found message --- static/i18n/hy.json | 1 + test/server.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/static/i18n/hy.json b/static/i18n/hy.json index b1963af29..376236325 100644 --- a/static/i18n/hy.json +++ b/static/i18n/hy.json @@ -5,4 +5,5 @@ }, "name":"Հայերեն", "suggest-full-text-search": "որոնել '{{{SEARCH_TERMS}}}'..." + , "url-not-found" : "Սխալ հասցե՝ {{url}}" } diff --git a/test/server.cpp b/test/server.cpp index d56f22d51..7508a7bf2 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -587,6 +587,14 @@ TEST_F(ServerTest, 404WithBodyTesting)

)" }, + { /* url */ "/ROOT/catalog/?userlang=hy", + expected_body==R"( +

Not Found

+

+ Սխալ հասցե՝ /ROOT/catalog/ +

+)" }, + { /* url */ "/ROOT/catalog/invalid_endpoint", expected_body==R"(

Not Found

@@ -595,6 +603,14 @@ TEST_F(ServerTest, 404WithBodyTesting)

)" }, + { /* url */ "/ROOT/catalog/invalid_endpoint?userlang=hy", + expected_body==R"( +

Not Found

+

+ Սխալ հասցե՝ /ROOT/catalog/invalid_endpoint +

+)" }, + { /* url */ "/ROOT/invalid-book/whatever", expected_body==R"(

Not Found