We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 4ab995dd authored by Siebrand Mazeland's avatar Siebrand Mazeland

Complete "people tag" to "list" in UI messages.

Update translator documentation accordingly.

Probably a few cases left where "tag[ged[" has to be replaced by "list[ed]".
parent 25e38ebe
...@@ -106,8 +106,8 @@ class AddpeopletagAction extends Action ...@@ -106,8 +106,8 @@ class AddpeopletagAction extends Action
$this->peopletag = Profile_list::staticGet('id', $id); $this->peopletag = Profile_list::staticGet('id', $id);
if (empty($this->peopletag)) { if (empty($this->peopletag)) {
// TRANS: Client error displayed trying to reference a non-existing people tag. // TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such people tag.')); $this->clientError(_('No such list.'));
return false; return false;
} }
...@@ -161,7 +161,7 @@ class AddpeopletagAction extends Action ...@@ -161,7 +161,7 @@ class AddpeopletagAction extends Action
if ($this->boolean('ajax')) { if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8'); $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head'); $this->elementStart('head');
// TRANS: Title after subscribing to a people tag. // TRANS: Title after subscribing to a list.
$this->element('title', null, _('Subscribed')); $this->element('title', null, _('Subscribed'));
$this->elementEnd('head'); $this->elementEnd('head');
$this->elementStart('body'); $this->elementStart('body');
......
...@@ -260,7 +260,7 @@ class EditpeopletagAction extends OwnerDesignAction ...@@ -260,7 +260,7 @@ class EditpeopletagAction extends OwnerDesignAction
return; return;
} else if (Profile_list::descriptionTooLong($description)) { } else if (Profile_list::descriptionTooLong($description)) {
$this->showForm(sprintf( $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. // TRANS: %d is the maximum number of allowed characters.
_m('Description is too long (maximum %d character).', _m('Description is too long (maximum %d character).',
'Description is too long (maximum %d characters).', 'Description is too long (maximum %d characters).',
...@@ -318,7 +318,7 @@ class EditpeopletagAction extends OwnerDesignAction ...@@ -318,7 +318,7 @@ class EditpeopletagAction extends OwnerDesignAction
'tag' => $tag)), 'tag' => $tag)),
303); 303);
} else { } else {
// TRANS: Edit people tag form success message. // TRANS: Edit list form success message.
$this->showForm(_('Options saved.')); $this->showForm(_('Options saved.'));
} }
} }
......
...@@ -92,8 +92,8 @@ class PeopletagsubscribersAction extends OwnerDesignAction ...@@ -92,8 +92,8 @@ class PeopletagsubscribersAction extends OwnerDesignAction
$this->peopletag = Profile_list::pkeyGet(array('tagger' => $user->id, 'tag' => $tag)); $this->peopletag = Profile_list::pkeyGet(array('tagger' => $user->id, 'tag' => $tag));
if (!$this->peopletag) { if (!$this->peopletag) {
// TRANS: Client error displayed trying to reference a non-existing people tag. // TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such people tag.'), 404); $this->clientError(_('No such list.'), 404);
return false; return false;
} }
...@@ -103,14 +103,14 @@ class PeopletagsubscribersAction extends OwnerDesignAction ...@@ -103,14 +103,14 @@ class PeopletagsubscribersAction extends OwnerDesignAction
function title() function title()
{ {
if ($this->page == 1) { if ($this->page == 1) {
// TRANS: Page title for list of people tag subscribers. // TRANS: Page title for list of list subscribers.
// TRANS: %1$s is a tag, %2$s is a user nickname. // TRANS: %1$s is a list, %2$s is a user nickname.
return sprintf(_('Subscribers of people tagged %1$s by %2$s'), return sprintf(_('Subscribers to list %1$s by %2$s'),
$this->peopletag->tag, $this->tagger->nickname); $this->peopletag->tag, $this->tagger->nickname);
} else { } else {
// TRANS: Page title for list of people tag subscribers. // TRANS: Page title for list of list subscribers.
// TRANS: %1$s is a tag, %2$s is a user nickname, %3$d is a page number. // TRANS: %1$s is a list, %2$s is a user nickname, %3$d is a page number.
return sprintf(_('Subscribers of people tagged %1$s by %2$s, page %3$d'), return sprintf(_('Subscribers to list %1$s by %2$s, page %3$d'),
$this->peopletag->tag, $this->tagger->nickname, $this->peopletag->tag, $this->tagger->nickname,
$this->page); $this->page);
} }
......
...@@ -97,8 +97,8 @@ class ProfilecompletionAction extends Action ...@@ -97,8 +97,8 @@ class ProfilecompletionAction extends Action
$this->peopletag = Profile_list::staticGet('id', $id); $this->peopletag = Profile_list::staticGet('id', $id);
if (empty($this->peopletag)) { if (empty($this->peopletag)) {
// TRANS: Client error displayed trying to reference a non-existing people tag. // TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such people tag.')); $this->clientError(_('No such list.'));
return false; return false;
} }
......
...@@ -63,8 +63,8 @@ class ProfiletagbyidAction extends Action ...@@ -63,8 +63,8 @@ class ProfiletagbyidAction extends Action
$this->peopletag = Profile_list::staticGet('id', $id); $this->peopletag = Profile_list::staticGet('id', $id);
if (!$this->peopletag) { if (!$this->peopletag) {
// TRANS: Client error displayed trying to reference a non-existing people tag. // TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such people tag.'), 404); $this->clientError(_('No such list.'), 404);
return false; return false;
} }
......
...@@ -53,33 +53,33 @@ class PublicpeopletagcloudAction extends Action ...@@ -53,33 +53,33 @@ class PublicpeopletagcloudAction extends Action
function title() function title()
{ {
// TRANS: Title for page with public people tag cloud. // TRANS: Title for page with public list cloud.
return _('Public people tag cloud'); return _('Public list cloud');
} }
function showPageNotice() function showPageNotice()
{ {
$this->element('p', 'instructions', $this->element('p', 'instructions',
// TRANS: Page notice for page with public people tag cloud. // TRANS: Page notice for page with public list cloud.
// TRANS: %s is a StatusNet sitename. // TRANS: %s is a StatusNet sitename.
sprintf(_('These are most used people tags on %s'), sprintf(_('These are largest lists on %s'),
common_config('site', 'name'))); common_config('site', 'name')));
} }
function showEmptyList() function showEmptyList()
{ {
// TRANS: Empty list message on page with public people tag cloud. // TRANS: Empty list message on page with public list cloud.
// TRANS: This message contains Markdown links in the form [description](link). // TRANS: This message contains Markdown links in the form [description](link).
$message = _('No one has [tagged](%%doc.tags%%) anyone yet.') . ' '; $message = _('No one has [listed](%%doc.tags%%) anyone yet.') . ' ';
if (common_logged_in()) { if (common_logged_in()) {
// TRANS: Additional empty list message on page with public people tag cloud for logged in users. // TRANS: Additional empty list message on page with public list cloud for logged in users.
$message .= _('Be the first to tag someone!'); $message .= _('Be the first to list someone!');
} }
else { else {
// TRANS: Additional empty list message on page with public people tag cloud for anonymous users. // TRANS: Additional empty list message on page with public list cloud for anonymous users.
// TRANS: This message contains Markdown links in the form [description](link). // TRANS: This message contains Markdown links in the form [description](link).
$message .= _('Why not [register an account](%%action.register%%) and be the first to tag someone!'); $message .= _('Why not [register an account](%%action.register%%) and be the first to list someone!');
} }
$this->elementStart('div', 'guide'); $this->elementStart('div', 'guide');
...@@ -132,8 +132,8 @@ class PublicpeopletagcloudAction extends Action ...@@ -132,8 +132,8 @@ class PublicpeopletagcloudAction extends Action
ksort($tw); ksort($tw);
$this->elementStart('dl'); $this->elementStart('dl');
// TRANS: DT element on on page with public people tag cloud. // TRANS: DT element on on page with public list cloud.
$this->element('dt', null, _('People tag cloud')); $this->element('dt', null, _('List cloud'));
$this->elementStart('dd'); $this->elementStart('dd');
$this->elementStart('ul', 'tags xoxo tag-cloud'); $this->elementStart('ul', 'tags xoxo tag-cloud');
foreach ($tw as $tag => $weight) { foreach ($tw as $tag => $weight) {
...@@ -173,8 +173,8 @@ class PublicpeopletagcloudAction extends Action ...@@ -173,8 +173,8 @@ class PublicpeopletagcloudAction extends Action
$this->elementStart('li', $rel); $this->elementStart('li', $rel);
// TRANS: Link title for number of people tagged. %d is the number of people tagged. // TRANS: Link title for number of listed people. %d is the number of listed people.
$title = sprintf(_m('1 person tagged','%d people tagged',$weight),$weight); $title = sprintf(_m('1 person listed','%d people listed',$weight),$weight);
$this->element('a', array('href' => common_local_url('peopletag', array('tag' => $tag)), $this->element('a', array('href' => common_local_url('peopletag', array('tag' => $tag)),
'title' => $title), $tag); 'title' => $title), $tag);
$this->elementEnd('li'); $this->elementEnd('li');
......
...@@ -107,8 +107,8 @@ class RemovepeopletagAction extends Action ...@@ -107,8 +107,8 @@ class RemovepeopletagAction extends Action
$this->peopletag = Profile_list::staticGet('id', $id); $this->peopletag = Profile_list::staticGet('id', $id);
if (empty($this->peopletag)) { if (empty($this->peopletag)) {
// TRANS: Client error displayed trying to reference a non-existing people tag. // TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such people tag.')); $this->clientError(_('No such list.'));
return false; return false;
} }
...@@ -147,14 +147,14 @@ class RemovepeopletagAction extends Action ...@@ -147,14 +147,14 @@ class RemovepeopletagAction extends Action
$user = User::staticGet('id', $this->tagged->id); $user = User::staticGet('id', $this->tagged->id);
if ($user) { if ($user) {
$this->clientError( $this->clientError(
// TRANS: Client error displayed when an unknown error occurs while tagging a user. // TRANS: Client error displayed when an unknown error occurs while listing a user.
// TRANS: %s is a username. // TRANS: %s is a username.
sprintf(_('There was an unexpected error while tagging %s.'), sprintf(_('There was an unexpected error while listing %s.'),
$user->nickname)); $user->nickname));
} else { } else {
// TRANS: Client error displayed when an unknown error occurs while tagging a user. // TRANS: Client error displayed when an unknown error occurs while listing a user.
// TRANS: %s is a profile URL. // TRANS: %s is a profile URL.
$this->clientError(sprintf(_('There was a problem tagging %s. ' . $this->clientError(sprintf(_('There was a problem listing %s. ' .
'The remote server is probably not responding correctly, ' . 'The remote server is probably not responding correctly, ' .
'please try retrying later.'), $this->profile->profileurl)); 'please try retrying later.'), $this->profile->profileurl));
} }
...@@ -163,7 +163,7 @@ class RemovepeopletagAction extends Action ...@@ -163,7 +163,7 @@ class RemovepeopletagAction extends Action
if ($this->boolean('ajax')) { if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8'); $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head'); $this->elementStart('head');
// TRANS: Title after untagging a people tag. // TRANS: Title after removing a user from a list.
$this->element('title', null, _('Untagged')); $this->element('title', null, _('Untagged'));
$this->elementEnd('head'); $this->elementEnd('head');
$this->elementStart('body'); $this->elementStart('body');
......
...@@ -63,9 +63,9 @@ class SelftagAction extends Action ...@@ -63,9 +63,9 @@ class SelftagAction extends Action
$this->tag = $this->trimmed('tag'); $this->tag = $this->trimmed('tag');
if (!common_valid_profile_tag($this->tag)) { if (!common_valid_profile_tag($this->tag)) {
// TRANS: Client error displayed when trying to tag a profile with an invalid tag. // TRANS: Client error displayed when trying to list a profile with an invalid list.
// TRANS: %s is the invalid tag. // TRANS: %s is the invalid list name.
$this->clientError(sprintf(_('Not a valid people tag: %s.'), $this->clientError(sprintf(_('Not a valid list: %s.'),
$this->tag)); $this->tag));
return; return;
} }
......
...@@ -307,7 +307,7 @@ class ShowprofiletagAction extends Action ...@@ -307,7 +307,7 @@ class ShowprofiletagAction extends Action
array('nickname' => $this->tagger->nickname, array('nickname' => $this->tagger->nickname,
'profiletag' => $this->peopletag->tag)), 'profiletag' => $this->peopletag->tag)),
'class' => 'more'), 'class' => 'more'),
// TRANS: Link for more "People tagged x by a user" // TRANS: Link for more "People in list x by a user"
// TRANS: if there are more than the mini list's maximum. // TRANS: if there are more than the mini list's maximum.
_('Show all')); _('Show all'));
$this->elementEnd('p'); $this->elementEnd('p');
......
...@@ -56,7 +56,7 @@ class SubscribepeopletagAction extends Action ...@@ -56,7 +56,7 @@ class SubscribepeopletagAction extends Action
if (!common_logged_in()) { if (!common_logged_in()) {
// TRANS: Client error displayed when trying to perform an action while not logged in. // TRANS: Client error displayed when trying to perform an action while not logged in.
$this->clientError(_('You must be logged in to unsubscribe to a people tag.')); $this->clientError(_('You must be logged in to unsubscribe from a list.'));
return false; return false;
} }
// Only allow POST requests // Only allow POST requests
...@@ -91,8 +91,8 @@ class SubscribepeopletagAction extends Action ...@@ -91,8 +91,8 @@ class SubscribepeopletagAction extends Action
} }
if (!$this->peopletag || $this->peopletag->private) { if (!$this->peopletag || $this->peopletag->private) {
// TRANS: Client error displayed trying to reference a non-existing people tag. // TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such people tag.'), 404); $this->clientError(_('No such list.'), 404);
return false; return false;
} }
...@@ -120,18 +120,18 @@ class SubscribepeopletagAction extends Action ...@@ -120,18 +120,18 @@ class SubscribepeopletagAction extends Action
try { try {
Profile_tag_subscription::add($this->peopletag, $cur); Profile_tag_subscription::add($this->peopletag, $cur);
} catch (Exception $e) { } catch (Exception $e) {
// TRANS: Server error displayed subscribing to a people tag fails. // TRANS: Server error displayed subscribing to a list fails.
// TRANS: %1$s is a user nickname, %2$s is a people tag. // TRANS: %1$s is a user nickname, %2$s is a list, %3$s is the error message (no period).
$this->serverError(sprintf(_('Could not subscribe user %1$s to people tag %2$s.'), $this->serverError(sprintf(_('Could not subscribe user %1$s to list %2$s: %3$s'),
$cur->nickname, $this->peopletag->tag) . ' ' . $e->getMessage()); $cur->nickname, $this->peopletag->tag), $e->getMessage());
} }
if ($this->boolean('ajax')) { if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8'); $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head'); $this->elementStart('head');
// TRANS: Title of form to subscribe to a people tag. // TRANS: Title of form to subscribe to a list.
// TRANS: %1%s is a user nickname, %2$s is a people tag, %3$s is a tagger nickname. // TRANS: %1%s is a user nickname, %2$s is a list, %3$s is a tagger nickname.
$this->element('title', null, sprintf(_('%1$s subscribed to people tag %2$s by %3$s'), $this->element('title', null, sprintf(_('%1$s subscribed to list %2$s by %3$s'),
$cur->nickname, $cur->nickname,
$this->peopletag->tag, $this->peopletag->tag,
$this->tagger->nickname)); $this->tagger->nickname));
......
...@@ -74,12 +74,12 @@ class TagprofileAction extends Action ...@@ -74,12 +74,12 @@ class TagprofileAction extends Action
function title() function title()
{ {
if (!$this->profile) { if (!$this->profile) {
// TRANS: Title for people tag form when not on a profile page. // TRANS: Title for list form when not on a profile page.
return _('Tag a profile'); return _('List a profile');
} }
// TRANS: Title for people tag form when on a profile page. // TRANS: Title for list form when on a profile page.
// TRANS: %s is a profile nickname. // TRANS: %s is a profile nickname.
return sprintf(_('Tag %s'), $this->profile->nickname); return sprintf(_m('ADDTOLIST','List %s'), $this->profile->nickname);
} }
function showForm($error=null) function showForm($error=null)
...@@ -88,7 +88,7 @@ class TagprofileAction extends Action ...@@ -88,7 +88,7 @@ class TagprofileAction extends Action
if ($this->boolean('ajax')) { if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8'); $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head'); $this->elementStart('head');
// TRANS: Title for people tag form when an error has occurred. // TRANS: Title for list form when an error has occurred.
$this->element('title', null, _m('TITLE','Error')); $this->element('title', null, _m('TITLE','Error'));
$this->elementEnd('head'); $this->elementEnd('head');
$this->elementStart('body'); $this->elementStart('body');
...@@ -104,7 +104,7 @@ class TagprofileAction extends Action ...@@ -104,7 +104,7 @@ class TagprofileAction extends Action
{ {
if (Event::handle('StartShowTagProfileForm', array($this, $this->profile)) && $this->profile) { if (Event::handle('StartShowTagProfileForm', array($this, $this->profile)) && $this->profile) {
$this->elementStart('div', 'entity_profile vcard author'); $this->elementStart('div', 'entity_profile vcard author');
// TRANS: Header in people tag form. // TRANS: Header in list form.
$this->element('h2', null, _('User profile')); $this->element('h2', null, _('User profile'));
$avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE); $avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
...@@ -147,8 +147,8 @@ class TagprofileAction extends Action ...@@ -147,8 +147,8 @@ class TagprofileAction extends Action
'action' => common_local_url('tagprofile', array('id' => $this->profile->id)))); 'action' => common_local_url('tagprofile', array('id' => $this->profile->id))));
$this->elementStart('fieldset'); $this->elementStart('fieldset');
// TRANS: Fieldset legend for people tag form. // TRANS: Fieldset legend for list form.
$this->element('legend', null, _('Tag user')); $this->element('legend', null, _('List user'));
$this->hidden('token', common_session_token()); $this->hidden('token', common_session_token());
$this->hidden('id', $this->profile->id); $this->hidden('id', $this->profile->id);
...@@ -158,14 +158,14 @@ class TagprofileAction extends Action ...@@ -158,14 +158,14 @@ class TagprofileAction extends Action
$this->elementStart('li'); $this->elementStart('li');
$tags = Profile_tag::getTagsArray($user->id, $this->profile->id, $user->id); $tags = Profile_tag::getTagsArray($user->id, $this->profile->id, $user->id);
// TRANS: Field label on people tag form. // TRANS: Field label on list form.
$this->input('tags', _m('LABEL','Tags'), $this->input('tags', _m('LABEL','Lists'),
($this->arg('tags')) ? $this->arg('tags') : implode(' ', $tags), ($this->arg('tags')) ? $this->arg('tags') : implode(' ', $tags),
// TRANS: Field title on people tag form. // TRANS: Field title on list form.
_('Tags for this user (letters, numbers, -, ., and _), comma- or space- separated.')); _('Lists for this user (letters, numbers, -, ., and _), comma- or space- separated.'));
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementEnd('ul'); $this->elementEnd('ul');
// TRANS: Button text to save people tags. // TRANS: Button text to save lists.
$this->submit('save', _m('BUTTON','Save')); $this->submit('save', _m('BUTTON','Save'));
$this->elementEnd('fieldset'); $this->elementEnd('fieldset');
$this->elementEnd('form'); $this->elementEnd('form');
...@@ -240,8 +240,8 @@ class TagprofileAction extends Action ...@@ -240,8 +240,8 @@ class TagprofileAction extends Action
$this->elementEnd('body'); $this->elementEnd('body');
$this->elementEnd('html'); $this->elementEnd('html');
} else { } else {
// TRANS: Success message if people tags are saved. // TRANS: Success message if lists are saved.
$this->error = _('Tags saved.'); $this->error = _('Lists saved.');
$this->showForm(); $this->showForm();
} }
...@@ -257,7 +257,7 @@ class TagprofileAction extends Action ...@@ -257,7 +257,7 @@ class TagprofileAction extends Action
$this->elementStart('div', 'instructions'); $this->elementStart('div', 'instructions');
$this->element('p', null, $this->element('p', null,
// TRANS: Page notice. // TRANS: Page notice.
_('Use this form to add tags to your subscribers or subscriptions.')); _('Use this form to add your subscribers or subscriptions to lists.'));
$this->elementEnd('div'); $this->elementEnd('div');
} }
} }
......
...@@ -57,7 +57,7 @@ class UnsubscribepeopletagAction extends Action ...@@ -57,7 +57,7 @@ class UnsubscribepeopletagAction extends Action
if (!common_logged_in()) { if (!common_logged_in()) {
// TRANS: Client error displayed when trying to perform an action while not logged in. // TRANS: Client error displayed when trying to perform an action while not logged in.
$this->clientError(_('You must be logged in to unsubscribe to a people tag.')); $this->clientError(_('You must be logged in to unsubscribe from a list.'));
return false; return false;
} }
// Only allow POST requests // Only allow POST requests
...@@ -92,8 +92,8 @@ class UnsubscribepeopletagAction extends Action ...@@ -92,8 +92,8 @@ class UnsubscribepeopletagAction extends Action
} }
if (!$this->peopletag || $this->peopletag->private) { if (!$this->peopletag || $this->peopletag->private) {
// TRANS: Client error displayed trying to reference a non-existing people tag. // TRANS: Client error displayed trying to reference a non-existing list.
$this->clientError(_('No such people tag.'), 404); $this->clientError(_('No such list.'), 404);
return false; return false;
} }
...@@ -122,9 +122,9 @@ class UnsubscribepeopletagAction extends Action ...@@ -122,9 +122,9 @@ class UnsubscribepeopletagAction extends Action
if ($this->boolean('ajax')) { if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8'); $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head'); $this->elementStart('head');
// TRANS: Page title for form that allows unsubscribing from a people tag. // TRANS: Page title for form that allows unsubscribing from a list.
// TRANS: %1$s is a nickname, %2$s is a people tag, %3$s is a tagger nickname. // TRANS: %1$s is a nickname, %2$s is a list, %3$s is a tagger nickname.
$this->element('title', null, sprintf(_('%1$s unsubscribed to people tag %2$s by %3$s'), $this->element('title', null, sprintf(_('%1$s unsubscribed from list %2$s by %3$s'),
$cur->nickname, $cur->nickname,
$this->peopletag->tag, $this->peopletag->tag,
$this->tagger->nickname)); $this->tagger->nickname));
......
...@@ -167,10 +167,10 @@ class Profile_tag extends Memcached_DataObject ...@@ -167,10 +167,10 @@ class Profile_tag extends Memcached_DataObject
$profile_list = Profile_list::ensureTag($tagger, $tag, $desc, $private); $profile_list = Profile_list::ensureTag($tagger, $tag, $desc, $private);
if ($profile_list->taggedCount() >= common_config('peopletag', 'maxpeople')) { if ($profile_list->taggedCount() >= common_config('peopletag', 'maxpeople')) {
// TRANS: Client exception thrown trying to set one tag for more people than allowed. // TRANS: Client exception thrown when trying to add more people than allowed to a list.
throw new ClientException(sprintf(_('You already have %1$d or more people tagged %2$s, ' . throw new ClientException(sprintf(_('You already have %1$d or more people in list %2$s, ' .
'which is the maximum allowed number.' . 'which is the maximum allowed number.' .
'Try untagging others with the same tag first.'), 'Try unlisting others first.'),
common_config('peopletag', 'maxpeople'), $tag)); common_config('peopletag', 'maxpeople'), $tag));
return false; return false;
} }
......
...@@ -50,8 +50,8 @@ class Profile_tag_subscription extends Memcached_DataObject ...@@ -50,8 +50,8 @@ class Profile_tag_subscription extends Memcached_DataObject
if (!$result) { if (!$result) {
common_log_db_error($sub, 'INSERT', __FILE__); common_log_db_error($sub, 'INSERT', __FILE__);
// TRANS: Exception thrown when inserting a people tag subscription in the database fails. // TRANS: Exception thrown when inserting a list subscription in the database fails.
throw new Exception(_('Adding people tag subscription failed.')); throw new Exception(_('Adding list subscription failed.'));
} }
$ptag = Profile_list::staticGet('id', $peopletag->id); $ptag = Profile_list::staticGet('id', $peopletag->id);
...@@ -77,8 +77,8 @@ class Profile_tag_subscription extends Memcached_DataObject ...@@ -77,8 +77,8 @@ class Profile_tag_subscription extends Memcached_DataObject
if (!$result) { if (!$result) {
common_log_db_error($sub, 'DELETE', __FILE__); common_log_db_error($sub, 'DELETE', __FILE__);
// TRANS: Exception thrown when deleting a people tag subscription from the database fails. // TRANS: Exception thrown when deleting a list subscription from the database fails.
throw new Exception(_('Removing people tag subscription failed.')); throw new Exception(_('Removing list subscription failed.'));
} }
$peopletag->subscriberCount(true); $peopletag->subscriberCount(true);
......