From 301164bc57be6270fcf728f1971c90e6a31dc149 Mon Sep 17 00:00:00 2001 From: Egorka Date: Thu, 19 Jul 2018 22:30:20 +0300 Subject: [PATCH] Translate RU login form --- backend/messages/ru/buttons.php | 1 + backend/messages/ru/main.php | 1 + backend/messages/ru/user.php | 1 + backend/views/auth/login.php | 6 +++--- core/forms/auth/LoginForm.php | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/messages/ru/buttons.php b/backend/messages/ru/buttons.php index 1173bca..12afcc5 100644 --- a/backend/messages/ru/buttons.php +++ b/backend/messages/ru/buttons.php @@ -11,4 +11,5 @@ return [ 'Create Setting' => 'Новый параметр', 'Go' => 'Перейти', 'Add to menu' => 'Добавить в меню', + 'Sign in' => 'Вход', ]; \ No newline at end of file diff --git a/backend/messages/ru/main.php b/backend/messages/ru/main.php index e2acfdd..7905a65 100644 --- a/backend/messages/ru/main.php +++ b/backend/messages/ru/main.php @@ -30,4 +30,5 @@ return [ 'Name' => 'Название', 'Title attribute' => 'Атрибут тега Title', 'Url' => 'Ссылка', + 'Sign in to start your session' => 'Вход в панель управления', ]; \ No newline at end of file diff --git a/backend/messages/ru/user.php b/backend/messages/ru/user.php index 08d9a29..7c9a5ed 100644 --- a/backend/messages/ru/user.php +++ b/backend/messages/ru/user.php @@ -37,4 +37,5 @@ return [ 'Profile: {username}' => 'Профиль: {username}', 'User Picture' => 'Аватар', 'Registered: {date}' => 'Дата регистрации: {date}', + 'Remember Me' => 'Запомнить меня', ]; \ No newline at end of file diff --git a/backend/views/auth/login.php b/backend/views/auth/login.php index 950d86b..76e4551 100644 --- a/backend/views/auth/login.php +++ b/backend/views/auth/login.php @@ -22,11 +22,11 @@ $fieldOptions2 = [
- 'btn btn-primary btn-block btn-flat', 'name' => 'login-button']) ?> + 'btn btn-primary btn-block btn-flat', 'name' => 'login-button']) ?>
diff --git a/core/forms/auth/LoginForm.php b/core/forms/auth/LoginForm.php index 8b7f44f..f3c6f49 100644 --- a/core/forms/auth/LoginForm.php +++ b/core/forms/auth/LoginForm.php @@ -21,6 +21,7 @@ class LoginForm extends Model return [ 'username' => \Yii::t('user', 'Username'), 'password' => \Yii::t('user', 'Password'), + 'rememberMe' => \Yii::t('user', 'Remember Me'), ]; } }