Commit 02b1aa33aa4f01b9488a14989faa60c444092122
1 parent
b3a3f2e6
translates 2
Showing
5 changed files
with
22 additions
and
8 deletions
Show diff stats
backend/controllers/FeedbackController.php
| @@ -134,7 +134,7 @@ class FeedbackController extends Controller | @@ -134,7 +134,7 @@ class FeedbackController extends Controller | ||
| 134 | if (($model = Feedback::findOne($id)) !== null) { | 134 | if (($model = Feedback::findOne($id)) !== null) { |
| 135 | return $model; | 135 | return $model; |
| 136 | } else { | 136 | } else { |
| 137 | - throw new NotFoundHttpException('The requested page does not exist.'); | 137 | + throw new NotFoundHttpException(\Yii::t('core', 'The requested page does not exist.')); |
| 138 | } | 138 | } |
| 139 | } | 139 | } |
| 140 | 140 |
backend/controllers/PersoneController.php
| @@ -153,7 +153,7 @@ | @@ -153,7 +153,7 @@ | ||
| 153 | if (( $model = Persone::findOne($id) ) !== null) { | 153 | if (( $model = Persone::findOne($id) ) !== null) { |
| 154 | return $model; | 154 | return $model; |
| 155 | } else { | 155 | } else { |
| 156 | - throw new NotFoundHttpException('The requested page does not exist.'); | 156 | + throw new NotFoundHttpException(\Yii::t('core', 'The requested page does not exist.')); |
| 157 | } | 157 | } |
| 158 | } | 158 | } |
| 159 | } | 159 | } |
backend/controllers/SettingsController.php
| @@ -136,7 +136,7 @@ | @@ -136,7 +136,7 @@ | ||
| 136 | ) { | 136 | ) { |
| 137 | return $model; | 137 | return $model; |
| 138 | } else { | 138 | } else { |
| 139 | - throw new InvalidConfigException('Settings file not found'); | 139 | + throw new InvalidConfigException(\Yii::t('core', 'Settings file not found')); |
| 140 | } | 140 | } |
| 141 | } | 141 | } |
| 142 | } | 142 | } |
common/messages/ru/core.php
| @@ -63,4 +63,23 @@ return [ | @@ -63,4 +63,23 @@ return [ | ||
| 63 | 'date' => 'Дата', | 63 | 'date' => 'Дата', |
| 64 | 'service' => 'Услуга', | 64 | 'service' => 'Услуга', |
| 65 | 'time' => 'Время', | 65 | 'time' => 'Время', |
| 66 | + 'Registered on {date}' => 'Зарегистрирован {date}', | ||
| 67 | + 'Last update on {date}' => 'Последнее обновление {date}', | ||
| 68 | + 'Page' => 'страницу', | ||
| 69 | + 'Settings saved' => 'Настройки сохранены', | ||
| 70 | + 'Robots saved' => 'Robots сохранены', | ||
| 71 | + 'Codes saved successfully' => 'Коды успешно сохранены', | ||
| 72 | + 'Settings file not found' => 'Файл настроек не найден', | ||
| 73 | + 'The requested page does not exist.' => 'Данной страницы не существует.', | ||
| 74 | + 'Notification' => 'Уведомление', | ||
| 75 | + 'Status changed' => 'Статус изменён', | ||
| 76 | + 'Sitemap generated to ' => 'Карта сайта сгенерирована в ', | ||
| 77 | + 'Priority' => 'Приоритет', | ||
| 78 | + 'Frequency' => 'Частота', | ||
| 79 | + 'Alias' => 'псевдоним', | ||
| 80 | + 'Description' => 'Описание', | ||
| 81 | + 'Language' => 'Язык', | ||
| 82 | + 'Seo text' => 'SEO текст', | ||
| 83 | + 'Entity' => 'Сущность', | ||
| 84 | + 'Create' => 'Создать', | ||
| 66 | ]; | 85 | ]; |
| 67 | \ No newline at end of file | 86 | \ No newline at end of file |
frontend/web/robots.txt