فهرست منبع

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');
                 } else {
-                    $page = $this->c->Message->message('Bad request');
+                    $page = $this->c->Message->message('Not Found', true, 404);
                 }
                 break;
             case $r::METHOD_NOT_ALLOWED:

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

@@ -67,6 +67,9 @@ msgstr "Expired token."
 msgid "Bad request"
 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"
 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"
 msgstr "Неверный запрос. Ссылка, по которой вы перешли, является неверной или просроченной."
 
+msgid "Not Found"
+msgstr "Не найдено. Ссылка является неверной или просроченной."
+
 msgid "No view"
 msgstr "У вас нет прав для просмотра форума."