Wording: Fix lower case on login and registration forms (#6917)

This commit is contained in:
Yuriy Bakhtin 2024-04-04 08:45:48 +02:00 committed by GitHub
parent 7f40364385
commit 45c5912329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
51 changed files with 102 additions and 150 deletions

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => ' ',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => 'correu-e',
'password' => 'clau',
'username or email' => 'nombre d\'usuario u correu-e',
'Password' => 'clau',
'Username or Email' => 'nombre d\'usuario u correu-e',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'كلمة المرور غير صحيحة',
'a new user {displayName} needs approval.' => 'يحتاج المستخدم الجديد {displayName} إلى موافقة.',
'back to home' => 'العودة إلى المنزل',
'email' => 'البريد الإلكتروني',
'password' => 'كلمه السر',
'username or email' => 'اسم المستخدم أو البريد الالكتروني',
'Password' => 'كلمه السر',
'Username or Email' => 'اسم المستخدم أو البريد الالكتروني',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Вашата парола е неправилна!',
'a new user {displayName} needs approval.' => 'нов потребител {displayName} се нуждае от одобрение.',
'back to home' => 'обратно към начална страница',
'email' => 'имейл',
'password' => 'парола',
'username or email' => 'потребителско име или парола',
'Password' => 'парола',
'Username or Email' => 'потребителско име или парола',
);

View File

@ -72,7 +72,6 @@ return [
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
];

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'La teva contrasenya és incorrecta!',
'a new user {displayName} needs approval.' => 'el nou usuari {displayName} necessita ser aprovat.',
'back to home' => 'Torna a l\'inici',
'email' => 'correu electrònic',
'password' => 'contrasenya',
'username or email' => 'usuari o correu',
'Password' => 'contrasenya',
'Username or Email' => 'usuari o correu',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Vaše heslo je nesprávné!',
'a new user {displayName} needs approval.' => 'uživatel {displayName} žádá o přístup.',
'back to home' => 'Zpět na hlavní stránku',
'email' => 'E-mailová adresa',
'password' => 'Heslo',
'username or email' => 'Uživatelské jméno nebo e-mail',
'Password' => 'Heslo',
'Username or Email' => 'Uživatelské jméno nebo e-mail',
);

View File

@ -56,7 +56,6 @@ return [
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
];

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Din adgangskode er forkert!',
'a new user {displayName} needs approval.' => '',
'back to home' => 'tilbage til hjem',
'email' => 'e-mail',
'password' => 'adgangskode',
'username or email' => 'brugernavn eller e-mail',
'Password' => 'adgangskode',
'Username or Email' => 'brugernavn eller e-mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Dein Passwort ist nicht korrekt!',
'a new user {displayName} needs approval.' => 'Neuer Benutzer {displayName} benötigt eine Freischaltung.',
'back to home' => 'zurück zur Startseite',
'email' => 'E-Mail',
'password' => 'Passwort',
'username or email' => 'Benutzername oder E-Mail',
'Password' => 'Passwort',
'Username or Email' => 'Benutzername oder E-Mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Ο κωδικός σου είναι λάθος',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '¡Tu clave es incorrecta!',
'a new user {displayName} needs approval.' => 'un usuario nuevo {displayName} requiere aprobación.',
'back to home' => 'Volver a Inicio',
'email' => 'correo electrónico',
'password' => 'contraseña',
'username or email' => 'Usuario o correo electrónico',
'Password' => 'contraseña',
'Username or Email' => 'Usuario o correo electrónico',
);

View File

@ -56,7 +56,6 @@ return [
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
];

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'گذرواژ شما نادرست است!',
'a new user {displayName} needs approval.' => 'یک کاربر جدید {displayName} نیاز به تأیید دارد.',
'back to home' => 'بازگشت به خانه',
'email' => 'ایمیل',
'password' => 'گذرواژ',
'username or email' => 'نام كاربری یا ایمیل',
'Password' => 'گذرواژ',
'Username or Email' => 'نام كاربری یا ایمیل',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Salasana väärin!',
'a new user {displayName} needs approval.' => 'käyttäjä {displayName} lähetti liittymis pyynnön',
'back to home' => 'takaisin kotiin',
'email' => 'Sähkäposti',
'password' => 'Salasana',
'username or email' => 'Sähköposti tai Käyttäjätunnus',
'Password' => 'Salasana',
'Username or Email' => 'Sähköposti tai Käyttäjätunnus',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Votre mot de passe est incorrect.',
'a new user {displayName} needs approval.' => 'un nouvel utilisateur {displayName} nécessite une validation.',
'back to home' => 'Retour à l\'accueil',
'email' => 'e-mail',
'password' => 'mot de passe',
'username or email' => 'identifiant ou e-mail',
'Password' => 'mot de passe',
'Username or Email' => 'identifiant ou e-mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Vaša lozinka nije točna!',
'a new user {displayName} needs approval.' => 'novi korisnik {displayName} treba odobrenje.',
'back to home' => 'povratak na početno',
'email' => 'email',
'password' => 'lozinka',
'username or email' => 'korisničko ime ili email',
'Password' => 'lozinka',
'Username or Email' => 'korisničko ime ili email',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'A jelszavad helytelen!',
'a new user {displayName} needs approval.' => 'egy új felhasználó {displayName} jóváhagyásra vár.',
'back to home' => 'Vissza a főoldalra',
'email' => 'e-mail',
'password' => 'jelszó',
'username or email' => 'felhasználónév vagy e-mail',
'Password' => 'jelszó',
'Username or Email' => 'felhasználónév vagy e-mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'La tua password non è corretta!',
'a new user {displayName} needs approval.' => 'un nuovo utente {displayName} necessita di approvazione.',
'back to home' => 'torna alla home',
'email' => 'email',
'password' => 'password',
'username or email' => 'username o email',
'Password' => 'Password',
'Username or Email' => 'username o email',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'パスワードが間違っています',
'a new user {displayName} needs approval.' => '{displayName}さんが新規登録を希望していらっしゃいます。',
'back to home' => 'ホームに戻る',
'email' => 'Eメール',
'password' => 'パスワード',
'username or email' => 'ユーザー名 または Eメール',
'Password' => 'パスワード',
'Username or Email' => 'ユーザー名 または Eメール',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Jūsų slaptažodis yra neteisingas!',
'a new user {displayName} needs approval.' => '{displayName} laukia patvirtinimo',
'back to home' => 'atgal į namų puslapį',
'email' => 'elektroninio pašto adresas',
'password' => 'slaptažodis',
'username or email' => 'vartotojo vardas arba elektroninio pašto adresas',
'Password' => 'slaptažodis',
'Username or Email' => 'vartotojo vardas arba elektroninio pašto adresas',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Passordet du oppgav stemmer ikke. Vennligst prøv igjen.',
'a new user {displayName} needs approval.' => 'en ny bruker {displayName} trenger godkjenning.',
'back to home' => 'tilbake',
'email' => 'e-post',
'password' => 'passord',
'username or email' => 'brukernavn eller e-post',
'Password' => 'passord',
'Username or Email' => 'brukernavn eller e-post',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Uw wachtwoord is onjuist!',
'a new user {displayName} needs approval.' => 'De nieuwe gebruiker {displayName} heeft goedkeuring nodig.',
'back to home' => 'Terug naar begin',
'email' => 'e-mail',
'password' => 'wachtwoord',
'username or email' => 'gebruikersnaam of e-mail',
'Password' => 'wachtwoord',
'Username or Email' => 'gebruikersnaam of e-mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Twoje hasło jest niepoprawne!',
'a new user {displayName} needs approval.' => 'nowy użytkownik {displayName} czeka na zatwierdzenie.',
'back to home' => 'powróć do strony domowej',
'email' => 'e-mail',
'password' => 'hasło',
'username or email' => 'nazwa użytkownika lub e-mail',
'Password' => 'hasło',
'Username or Email' => 'nazwa użytkownika lub e-mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Sua senha está incorreta!',
'a new user {displayName} needs approval.' => 'o novo usuário {displayName} precisa de aprovação.',
'back to home' => 'voltar ao início',
'email' => 'e-mail',
'password' => 'senha',
'username or email' => 'usuário ou e-mail',
'Password' => 'senha',
'Username or Email' => 'usuário ou e-mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'A tua palavra-passe está incorreta!',
'a new user {displayName} needs approval.' => 'um novo utilizador {displayName} necessita de aprovação.',
'back to home' => 'voltar à página inicial',
'email' => 'e-mail',
'password' => 'palavra-passe',
'username or email' => 'nome de utilizador ou e-mail',
'Password' => 'palavra-passe',
'Username or Email' => 'nome de utilizador ou e-mail',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Неверный пароль!',
'a new user {displayName} needs approval.' => 'новый пользователь {displayName} нуждается в подтверждении регистрации.',
'back to home' => 'Вернуться на домашнюю страницу',
'email' => 'Email',
'password' => 'Пароль',
'username or email' => 'Имя пользователя или email',
'Password' => 'Пароль',
'Username or Email' => 'Имя пользователя или email',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Vaša lozinka nije točna!',
'a new user {displayName} needs approval.' => 'novi korisnik {displayName} treba odobrenje.',
'back to home' => 'povratak na početno',
'email' => 'email',
'password' => 'lozinka',
'username or email' => 'korisničko ime ili email',
'Password' => 'lozinka',
'Username or Email' => 'korisničko ime ili email',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Ditt lösenord är felaktigt!',
'a new user {displayName} needs approval.' => 'en ny användare {displayName} behöver godkännande.',
'back to home' => 'tillbaka till förstasidan',
'email' => 'e-post',
'password' => 'lösenord',
'username or email' => 'användarnamn eller e-post',
'Password' => 'lösenord',
'Username or Email' => 'användarnamn eller e-post',
);

View File

@ -56,7 +56,6 @@ return [
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
];

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'รหัสผ่านของคุณไม่ถูกต้อง!',
'a new user {displayName} needs approval.' => 'ผู้ใช้ใหม่ {displayName} ต้องได้รับการอนุมัติ',
'back to home' => 'กลับไปที่บ้าน',
'email' => 'อีเมล',
'password' => 'รหัสผ่าน',
'username or email' => 'ชื่อผู้ใช้หรืออีเมล',
'Password' => 'รหัสผ่าน',
'Username or Email' => 'ชื่อผู้ใช้หรืออีเมล',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Şifreniz yanlış!',
'a new user {displayName} needs approval.' => 'yeni bir kullanıcı {displayName} onayı gerekiyor.',
'back to home' => 'anasayfaya dön',
'email' => 'E-posta',
'password' => 'Şifre',
'username or email' => 'Kullanıcı Adı / E-posta',
'Password' => 'Şifre',
'Username or Email' => 'Kullanıcı Adı / E-posta',
);

View File

@ -53,9 +53,8 @@ return [
'Your password is incorrect!' => 'Ваш пароль неправильний!',
'a new user {displayName} needs approval.' => 'новий користувач {displayName} потребує схвалення.',
'back to home' => 'назад додому',
'email' => 'електронна пошта',
'password' => 'пароль',
'username or email' => 'ім\'я користувача або електронна адреса',
'Password' => 'пароль',
'Username or Email' => 'ім\'я користувача або електронна адреса',
'Don\'t have an account? Join the network by entering your e-mail address.' => '',
'Due to security reasons you are required to change your password in order to access the platform.' => '',
'Enter security code above' => '',

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '',
'a new user {displayName} needs approval.' => '',
'back to home' => '',
'email' => '',
'password' => '',
'username or email' => '',
'Password' => '',
'Username or Email' => '',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => 'Sai mật khẩu!',
'a new user {displayName} needs approval.' => 'Một người dùng mới {displayName} cần xét duyệt.',
'back to home' => 'trở lại trang chủ',
'email' => 'email',
'password' => 'mật khẩu',
'username or email' => 'tên truy cập hoặc email',
'Password' => 'mật khẩu',
'Username or Email' => 'tên truy cập hoặc email',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '密码不正确',
'a new user {displayName} needs approval.' => '',
'back to home' => '返回主页',
'email' => '邮件',
'password' => '密码',
'username or email' => '用户名或邮箱',
'Password' => '密码',
'Username or Email' => '用户名或邮箱',
);

View File

@ -55,7 +55,6 @@ return array (
'Your password is incorrect!' => '您輸入的密碼錯誤!',
'a new user {displayName} needs approval.' => '有一個新用戶 {displayName} 需要核准。',
'back to home' => '返回主頁',
'email' => 'E-mail',
'password' => '密碼',
'username or email' => '使用者名稱或E-mail',
'Password' => '密碼',
'Username or Email' => '使用者名稱或E-mail',
);

View File

@ -60,8 +60,8 @@ class Login extends Model
public function attributeLabels()
{
return [
'username' => Yii::t('UserModule.auth', 'username or email'),
'password' => Yii::t('UserModule.auth', 'password'),
'username' => Yii::t('UserModule.auth', 'Username or Email'),
'password' => Yii::t('UserModule.auth', 'Password'),
'rememberMe' => Yii::t('UserModule.auth', 'Remember me'),
];
}

View File

@ -17,7 +17,7 @@ class LoginCest
$I->amGoingTo('try to login with empty credentials');
$loginPage->login('', '');
$I->expectTo('see validations errors');
$I->waitForText('username or email cannot be blank.');
$I->waitForText('Username or Email cannot be blank.');
$I->see('Password cannot be blank.');
$I->amGoingTo('try to login with wrong credentials');

View File

@ -67,8 +67,8 @@ use yii\widgets\ActiveForm;
<?php if ($showLoginForm): ?>
<?php $form = ActiveForm::begin(['enableClientValidation' => false]); ?>
<?= $form->field($model, 'username')->textInput(['id' => 'login_username', 'placeholder' => Yii::t('UserModule.auth', 'username or email')]); ?>
<?= $form->field($model, 'password')->passwordInput(['id' => 'login_password', 'placeholder' => Yii::t('UserModule.auth', 'password')]); ?>
<?= $form->field($model, 'username')->textInput(['id' => 'login_username', 'placeholder' => $model->getAttributeLabel('username')]); ?>
<?= $form->field($model, 'password')->passwordInput(['id' => 'login_password', 'placeholder' => $model->getAttributeLabel('password')]); ?>
<?= $form->field($model, 'rememberMe')->checkbox(); ?>
<hr>
<div class="row">
@ -122,7 +122,7 @@ use yii\widgets\ActiveForm;
<?php $form = ActiveForm::begin(['enableClientValidation' => false]); ?>
<?= $form->field($invite, 'email')->input('email', ['id' => 'register-email', 'placeholder' => Yii::t('UserModule.auth', 'email')]); ?>
<?= $form->field($invite, 'email')->input('email', ['id' => 'register-email', 'placeholder' => $invite->getAttributeLabel('email')]); ?>
<?php if ($invite->showCaptureInRegisterForm()) : ?>
<div><?= Yii::t('UserModule.auth', 'Please enter the letters from the image.'); ?></div>
<?= $form->field($invite, 'captcha')->widget(Captcha::class, [