@@ -95,7 +95,7 @@ public function attributeLabels()
95
95
96
96
public static function getStatusList () {
97
97
return [
98
- static ::STATUS_DELETED => " Заблокированный " ,
98
+ static ::STATUS_DELETED => Module:: t ( ' Deleted ' ) ,
99
99
static ::STATUS_USER => Module::t ('User ' ),
100
100
static ::STATUS_MANAGER => Module::t ('Manager ' ),
101
101
static ::STATUS_SENIOR_MANAGER => Module::t ('Senior manager ' ),
@@ -159,7 +159,7 @@ public function validateStatus($attribute, $params) {
159
159
$ user = self ::findOne (Yii::$ app ->user ->id );
160
160
if ($ this ->id != Yii::$ app ->user ->id ) {
161
161
if ($ user && ($ this ->status > $ user ->status || $ this ->id != $ user ->id && $ this ->status == $ user ->status )) {
162
- $ this ->addError ('status ' , ' Нельзя ставить пользователю статус выше или равный вашему! ' );
162
+ $ this ->addError ('status ' , Module:: t ( ' You cannot give a user a status higher than or equal to yours! ' ) );
163
163
}
164
164
}
165
165
}
@@ -368,8 +368,8 @@ public static function genPassword($length = 10)
368
368
public function sendPasswordEmail ($ password , $ action = 'create ' )
369
369
{
370
370
$ params = [
371
- 'create ' => ["view " => "password-new-html " , "subject " => " Регистрация в " ],
372
- 'reset ' => ["view " => "password-reset-html " , "subject " => " Сброс пароля для " ], //при сбросе пароля админом
371
+ 'create ' => ["view " => "password-new-html " , "subject " => Module:: t ( ' Registration in ' ) ],
372
+ 'reset ' => ["view " => "password-reset-html " , "subject " => Module:: t ( ' Password reset ' ) ], //при сбросе пароля админом
373
373
];
374
374
375
375
$ action = (isset ($ params [$ action ]) ? $ action : 'create ' );
0 commit comments