add translateions

This commit is contained in:
2015-11-21 20:36:46 +01:00
parent d1fa7e27cf
commit 07c2d4c36a
20 changed files with 118 additions and 36 deletions

View File

@@ -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.