浏览代码

Change error text for 404

Visman 4 年之前
父节点
当前提交
2e04d9aac3
共有 3 个文件被更改,包括 7 次插入1 次删除
  1. 1 1
      app/Controllers/Routing.php
  2. 3 0
      app/lang/en/common.po
  3. 3 0
      app/lang/ru/common.po

+ 1 - 1
app/Controllers/Routing.php

@@ -720,7 +720,7 @@ class Routing
                 ) {
                 ) {
                     $page = $this->c->Redirect->page('Login');
                     $page = $this->c->Redirect->page('Login');
                 } else {
                 } else {
-                    $page = $this->c->Message->message('Bad request');
+                    $page = $this->c->Message->message('Not Found', true, 404);
                 }
                 }
                 break;
                 break;
             case $r::METHOD_NOT_ALLOWED:
             case $r::METHOD_NOT_ALLOWED:

+ 3 - 0
app/lang/en/common.po

@@ -67,6 +67,9 @@ msgstr "Expired token."
 msgid "Bad request"
 msgid "Bad request"
 msgstr "Bad request. The link you followed is incorrect or outdated."
 msgstr "Bad request. The link you followed is incorrect or outdated."
 
 
+msgid "Not Found"
+msgstr "Not Found. The link is incorrect or outdated."
+
 msgid "No view"
 msgid "No view"
 msgstr "You do not have permission to view these forums."
 msgstr "You do not have permission to view these forums."
 
 

+ 3 - 0
app/lang/ru/common.po

@@ -61,6 +61,9 @@ msgstr "При отправке письма возникла ошибка. По
 msgid "Bad request"
 msgid "Bad request"
 msgstr "Неверный запрос. Ссылка, по которой вы перешли, является неверной или просроченной."
 msgstr "Неверный запрос. Ссылка, по которой вы перешли, является неверной или просроченной."
 
 
+msgid "Not Found"
+msgstr "Не найдено. Ссылка является неверной или просроченной."
+
 msgid "No view"
 msgid "No view"
 msgstr "У вас нет прав для просмотра форума."
 msgstr "У вас нет прав для просмотра форума."