- $this->out->input('nickname', _('Nickname'),
- ($this->out->arg('nickname')) ? $this->out->arg('nickname') : $nickname,
- _('1-64 lowercase letters or numbers, no punctuation or spaces'));
+ // TRANS: Field label on group edit form.
+ $this->out->input('newnickname', _('Nickname'),
+ ($this->out->arg('newnickname')) ? $this->out->arg('newnickname') : $nickname,
+ // TRANS: Field title on group edit form.
+ _('1-64 lowercase letters or numbers, no punctuation or spaces.'),
+ null, false,
+ $this->group instanceof User_group && !common_config('profile', 'changenick')
+ ? array('disabled'=>'disabled') // can't change nickname
+ : array()); // either we can change nickname, or we're creating a new group.