add translateions
This commit is contained in:
@@ -30,6 +30,14 @@ class LoginForm extends Model
|
||||
['password', 'validatePassword'],
|
||||
];
|
||||
}
|
||||
|
||||
public function attributeLabels(){
|
||||
return [
|
||||
'username' =>Yii::t('common/site', 'Username'),
|
||||
'password' =>Yii::t('common/site', 'Password'),
|
||||
'rememberMe' =>Yii::t('common/site', 'Remember me'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates the password.
|
||||
|
||||
Reference in New Issue
Block a user