From 02b1aa33aa4f01b9488a14989faa60c444092122 Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Mon, 20 Nov 2017 14:59:54 +0200 Subject: [PATCH] translates 2 --- backend/controllers/FeedbackController.php | 2 +- backend/controllers/PersoneController.php | 2 +- backend/controllers/SettingsController.php | 2 +- common/messages/ru/core.php | 19 +++++++++++++++++++ frontend/web/robots.txt | 5 ----- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/backend/controllers/FeedbackController.php b/backend/controllers/FeedbackController.php index 790eeba..bf47cce 100644 --- a/backend/controllers/FeedbackController.php +++ b/backend/controllers/FeedbackController.php @@ -134,7 +134,7 @@ class FeedbackController extends Controller if (($model = Feedback::findOne($id)) !== null) { return $model; } else { - throw new NotFoundHttpException('The requested page does not exist.'); + throw new NotFoundHttpException(\Yii::t('core', 'The requested page does not exist.')); } } diff --git a/backend/controllers/PersoneController.php b/backend/controllers/PersoneController.php index 57e7302..969786b 100755 --- a/backend/controllers/PersoneController.php +++ b/backend/controllers/PersoneController.php @@ -153,7 +153,7 @@ if (( $model = Persone::findOne($id) ) !== null) { return $model; } else { - throw new NotFoundHttpException('The requested page does not exist.'); + throw new NotFoundHttpException(\Yii::t('core', 'The requested page does not exist.')); } } } diff --git a/backend/controllers/SettingsController.php b/backend/controllers/SettingsController.php index e8ebc94..bf3b357 100755 --- a/backend/controllers/SettingsController.php +++ b/backend/controllers/SettingsController.php @@ -136,7 +136,7 @@ ) { return $model; } else { - throw new InvalidConfigException('Settings file not found'); + throw new InvalidConfigException(\Yii::t('core', 'Settings file not found')); } } } diff --git a/common/messages/ru/core.php b/common/messages/ru/core.php index 978e69d..54063ed 100644 --- a/common/messages/ru/core.php +++ b/common/messages/ru/core.php @@ -63,4 +63,23 @@ return [ 'date' => 'Дата', 'service' => 'Услуга', 'time' => 'Время', + 'Registered on {date}' => 'Зарегистрирован {date}', + 'Last update on {date}' => 'Последнее обновление {date}', + 'Page' => 'страницу', + 'Settings saved' => 'Настройки сохранены', + 'Robots saved' => 'Robots сохранены', + 'Codes saved successfully' => 'Коды успешно сохранены', + 'Settings file not found' => 'Файл настроек не найден', + 'The requested page does not exist.' => 'Данной страницы не существует.', + 'Notification' => 'Уведомление', + 'Status changed' => 'Статус изменён', + 'Sitemap generated to ' => 'Карта сайта сгенерирована в ', + 'Priority' => 'Приоритет', + 'Frequency' => 'Частота', + 'Alias' => 'псевдоним', + 'Description' => 'Описание', + 'Language' => 'Язык', + 'Seo text' => 'SEO текст', + 'Entity' => 'Сущность', + 'Create' => 'Создать', ]; \ No newline at end of file diff --git a/frontend/web/robots.txt b/frontend/web/robots.txt index 6de7f60..e69de29 100755 --- a/frontend/web/robots.txt +++ b/frontend/web/robots.txt @@ -1,5 +0,0 @@ -User-agent: * -Disallow: /en/ -Disallow: /ua/ -Host: https://kristal-estet.com/ -Sitemap: https://kristal-estet.com/sitemap.xml -- libgit2 0.21.4