public function attributeLabels() { $labels = parent::attributeLabels(); $labels['nickname'] = Yii::t('common', 'Nickname'); $labels['gender'] = Yii::t('common', 'Gender'); $labels['identity_num'] = Yii::t('common', 'Identity Num'); $labels['qq'] = Yii::t('common', 'QQ'); $labels['birthday'] = Yii::t('common', 'Birthday'); return $labels; }
/** * @inheritdoc */ public function attributeLabels() { $ret = parent::attributeLabels(); $ret = ['name' => 'Имя', 'public_email' => 'E-mail', 'location' => 'Адрес']; return $ret; }
/** @inheritdoc */ public function attributeLabels() { $labels = parent::attributeLabels(); $labels['avatar'] = \Yii::t('user', 'Avatar'); return $labels; }
/** * @inheritdoc */ public function attributeLabels() { $ret = parent::attributeLabels(); // $ret['telephone']='Телефон'; return $ret; }
/** * @inheritdoc */ public function attributeLabels() { return ArrayHelper::merge(parent::attributeLabels(), ['public_email' => Yii::t('infoweb/user', 'Email'), 'firstname' => Yii::t('infoweb/user', 'Firstname'), 'name' => Yii::t('infoweb/user', 'Name'), 'language' => Yii::t('infoweb/user', 'Language'), 'address' => Yii::t('infoweb/user', 'Address'), 'zipcode' => Yii::t('infoweb/user', 'Zipcode'), 'city' => Yii::t('infoweb/user', 'City'), 'phone' => Yii::t('infoweb/user', 'Phone'), 'mobile' => Yii::t('infoweb/user', 'Mobile'), 'fax' => Yii::t('infoweb/user', 'Fax')]); }
public function attributeLabels() { return array_replace_recursive(parent::attributeLabels(), ['location' => Yii::t('user', 'City'), 'image_url' => Yii::t('user', 'Profile image')]); }