Commit 5612a9e67721923e3da3644425dc3df571b3df3f

Authored by Eugeny Galkovskiy
1 parent d81c41d2

error page

common/messages/ru/app.php
... ... @@ -320,4 +320,8 @@ return [
320 320 'copylink' => 'Создание сайтов',
321 321 'get_consult' => 'Получить консультацию специалиста',
322 322 'Photo' => "Фото",
  323 + 'error1' => 'К сожалению,',
  324 + 'error2' => 'этой страницы больше нет',
  325 + 'error3' => 'Вернуться',
  326 + 'error4' => 'на главную',
323 327 ];
324 328 \ No newline at end of file
... ...
common/messages/ua/app.php
... ... @@ -321,4 +321,8 @@ return [
321 321 'city_short' => 'м',
322 322 'copylink' => 'Створення сайтів',
323 323 'get_consult' => 'Отримати консультацію спеціаліста',
  324 + 'error1' => 'Нажаль, ця сторінка',
  325 + 'error2' => 'більше не існує',
  326 + 'error3' => 'Повернутись',
  327 + 'error4' => 'на головну',
324 328 ];
325 329 \ No newline at end of file
... ...
frontend/views/site/error.php
... ... @@ -22,10 +22,10 @@ use yii\helpers\Html;
22 22 <p><img class="img-responsive" src="/img/errorimg.png"></p>
23 23 </div>
24 24 <div class="col-md-12 col-xs-12" style="text-align:center;">
25   - <p class="error-text">К сожалению, <br />этой страницы больше нет</p>
  25 + <p class="error-text"><?=\Yii::t('app', 'error1')?> <br /><?=\Yii::t('app', 'error2')?></p>
26 26 </div>
27 27 <div class="col-md-12 col-xs-12" style="text-align:center;">
28   - <a href="/" class="btn button1 noicon">Вернуться <span>на главную</span></a>
  28 + <a href="/" class="btn button1 noicon"><?=\Yii::t('app', 'error3')?> <span><?=\Yii::t('app', 'error4')?></span></a>
29 29 </div>
30 30 </div>
31 31 </div>
... ...