function title()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $this->boolean('delete')) {
- // TRANS: Title for edit people tag page after deleting a tag.
- // TRANS: %s is a tag.
- return sprintf(_('Delete %s people tag'), $this->peopletag->tag);
+ // TRANS: Title for edit list page after deleting a tag.
+ // TRANS: %s is a list.
+ return sprintf(_('Delete %s list'), $this->peopletag->tag);
}
- // TRANS: Title for edit people tag page.
- // TRANS: %s is a tag.
- return sprintf(_('Edit people tag %s'), $this->peopletag->tag);
+ // TRANS: Title for edit list page.
+ // TRANS: %s is a list.
+ return sprintf(_('Edit list %s'), $this->peopletag->tag);
}
/**
}
if (!$this->peopletag) {
- // TRANS: Client error displayed when referring to a non-exsting people tag.
- $this->clientError(_('No such people tag.'), 404);
+ // TRANS: Client error displayed when referring to a non-existing list.
+ $this->clientError(_('No such list.'), 404);
return false;
}
$this->element('p', 'instructions', $this->confirm);
} else {
$this->element('p', 'instructions',
- // TRANS: Form instruction for edit people tag form.
- _('Use this form to edit the people tag.'));
+ // TRANS: Form instruction for edit list form.
+ _('Use this form to edit the list.'));
}
}
return;
} else if (Profile_list::descriptionTooLong($description)) {
$this->showForm(sprintf(
- // TRANS: Client error shown when providing too long a description when editing a people tag.
+ // TRANS: Client error shown when providing too long a description when editing a list.
// TRANS: %d is the maximum number of allowed characters.
_m('Description is too long (maximum %d character).',
'Description is too long (maximum %d characters).',
if (!$result) {
common_log_db_error($this->group, 'UPDATE', __FILE__);
- // TRANS: TRANS: Server error displayed when updating a people tag fails.
- $this->serverError(_('Could not update people tag.'));
+ // TRANS: TRANS: Server error displayed when updating a list fails.
+ $this->serverError(_('Could not update list.'));
}
$this->peopletag->query('COMMIT');
'tag' => $tag)),
303);
} else {
- // TRANS: Edit people tag form success message.
+ // TRANS: Edit list form success message.
$this->showForm(_('Options saved.'));
}
}