Translation of the url-not-found message

This commit is contained in:
Veloman Yunkan 2022-03-24 19:41:18 +04:00 committed by Matthieu Gautier
parent 387f977d6c
commit b2526c7a98
2 changed files with 17 additions and 0 deletions

View File

@ -5,4 +5,5 @@
},
"name":"Հայերեն",
"suggest-full-text-search": "որոնել '{{{SEARCH_TERMS}}}'..."
, "url-not-found" : "Սխալ հասցե՝ {{url}}"
}

View File

@ -587,6 +587,14 @@ TEST_F(ServerTest, 404WithBodyTesting)
</p>
)" },
{ /* url */ "/ROOT/catalog/?userlang=hy",
expected_body==R"(
<h1>Not Found</h1>
<p>
Սխալ հասցե՝ /ROOT/catalog/
</p>
)" },
{ /* url */ "/ROOT/catalog/invalid_endpoint",
expected_body==R"(
<h1>Not Found</h1>
@ -595,6 +603,14 @@ TEST_F(ServerTest, 404WithBodyTesting)
</p>
)" },
{ /* url */ "/ROOT/catalog/invalid_endpoint?userlang=hy",
expected_body==R"(
<h1>Not Found</h1>
<p>
Սխալ հասցե՝ /ROOT/catalog/invalid_endpoint
</p>
)" },
{ /* url */ "/ROOT/invalid-book/whatever",
expected_body==R"(
<h1>Not Found</h1>