Commit 50cf76a28157b71e0485913b492052b151a59d02
1 parent
ef5aec9d
translates
Showing
3 changed files
with
11 additions
and
3 deletions
Show diff stats
common/messages/ru/app.php
| @@ -291,4 +291,8 @@ return [ | @@ -291,4 +291,8 @@ return [ | ||
| 291 | 'error_sorry' => 'We are sorry - this page is not here anymore', | 291 | 'error_sorry' => 'We are sorry - this page is not here anymore', |
| 292 | 'error_404' => 'Error 404 - Page not found', | 292 | 'error_404' => 'Error 404 - Page not found', |
| 293 | 'gohomepage' => 'Go to Homepage', | 293 | 'gohomepage' => 'Go to Homepage', |
| 294 | + | ||
| 295 | + 'formname' => 'Имя', | ||
| 296 | + 'formtheme' => 'Тема', | ||
| 297 | + 'formmess' => 'Сообщение', | ||
| 294 | ]; | 298 | ]; |
| 295 | \ No newline at end of file | 299 | \ No newline at end of file |
common/messages/ua/app.php
| @@ -292,4 +292,8 @@ return [ | @@ -292,4 +292,8 @@ return [ | ||
| 292 | 'error_sorry' => 'Просимо вибачення, даної сторінки не існує', | 292 | 'error_sorry' => 'Просимо вибачення, даної сторінки не існує', |
| 293 | 'error_404' => 'Помилка 404 - Сторінку не знайдено', | 293 | 'error_404' => 'Помилка 404 - Сторінку не знайдено', |
| 294 | 'gohomepage' => 'На головну', | 294 | 'gohomepage' => 'На головну', |
| 295 | + | ||
| 296 | + 'formname' => 'Ім\'я', | ||
| 297 | + 'formtheme' => 'Тема', | ||
| 298 | + 'formmess' => 'Повідомлення', | ||
| 295 | ]; | 299 | ]; |
| 296 | \ No newline at end of file | 300 | \ No newline at end of file |
frontend/views/site/contact.php
| @@ -148,7 +148,7 @@ JS; | @@ -148,7 +148,7 @@ JS; | ||
| 148 | <div class="row"> | 148 | <div class="row"> |
| 149 | <div class="col-sm-12"> | 149 | <div class="col-sm-12"> |
| 150 | <?= $form->field($contact, 'name') | 150 | <?= $form->field($contact, 'name') |
| 151 | - ->textInput()->label('Имя'); ?> | 151 | + ->textInput()->label(\Yii::t('app', 'formname')); ?> |
| 152 | </div> | 152 | </div> |
| 153 | 153 | ||
| 154 | <div class="col-sm-6"> | 154 | <div class="col-sm-6"> |
| @@ -157,7 +157,7 @@ JS; | @@ -157,7 +157,7 @@ JS; | ||
| 157 | </div> | 157 | </div> |
| 158 | <div class="col-sm-6"> | 158 | <div class="col-sm-6"> |
| 159 | <?= $form->field($contact, 'phone') | 159 | <?= $form->field($contact, 'phone') |
| 160 | - ->textInput()->label('Тема'); ?> | 160 | + ->textInput()->label(\Yii::t('app', 'formtheme')); ?> |
| 161 | </div> | 161 | </div> |
| 162 | <div class="col-sm-12"> | 162 | <div class="col-sm-12"> |
| 163 | <?= $form->field($contact, 'message') | 163 | <?= $form->field($contact, 'message') |
| @@ -165,7 +165,7 @@ JS; | @@ -165,7 +165,7 @@ JS; | ||
| 165 | [ | 165 | [ |
| 166 | 'rows' => 3, | 166 | 'rows' => 3, |
| 167 | ] | 167 | ] |
| 168 | - )->label('Сообщение'); ?> | 168 | + )->label(\Yii::t('app', 'formmess')); ?> |
| 169 | </div> | 169 | </div> |
| 170 | 170 | ||
| 171 | <div class="col-sm-12 text-center"> | 171 | <div class="col-sm-12 text-center"> |