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]".
This commit is contained in:
Siebrand Mazeland 2011-04-17 20:08:03 +02:00
parent 25e38ebeca
commit 4ab995dd1e
30 changed files with 132 additions and 132 deletions

View File

@ -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
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');

View File

@ -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
'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.'));
} }
} }

View File

@ -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
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);
} }

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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
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
$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');

View File

@ -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
$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
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');

View File

@ -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;
} }

View File

@ -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');

View File

@ -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
} }
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
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));

View File

@ -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
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
{ {
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
'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
$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
$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
$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');
} }
} }

View File

@ -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
} }
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
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));

View File

@ -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;
} }

View File

@ -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
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);

View File

@ -62,14 +62,14 @@ class AtomListNoticeFeed extends AtomNoticeFeed
$this->tagger = Profile::staticGet('id', $list->tagger); $this->tagger = Profile::staticGet('id', $list->tagger);
// TRANS: Title in atom list notice feed. %1$s is a list name, %2$s is a tagger's nickname. // TRANS: Title in atom list notice feed. %1$s is a list name, %2$s is a tagger's nickname.
$title = sprintf(_('Timeline for people tagged #%1$s by %2$s'), $list->tag, $this->tagger->nickname); $title = sprintf(_('Timeline for people in list %1$s by %2$s'), $list->tag, $this->tagger->nickname);
$this->setTitle($title); $this->setTitle($title);
$sitename = common_config('site', 'name'); $sitename = common_config('site', 'name');
$subtitle = sprintf( $subtitle = sprintf(
// TRANS: Message is used as a subtitle in atom list notice feed. // TRANS: Message is used as a subtitle in atom list notice feed.
// TRANS: %1$s is a tagger's nickname, %2$s is a list name, %3$s is a site name. // TRANS: %1$s is a tagger's nickname, %2$s is a list name, %3$s is a site name.
_('Updates from %1$s\'s %2$s people tag on %3$s!'), _('Updates from %1$s\'s list %2$s on %3$s!'),
$this->tagger->nickname, $this->tagger->nickname,
$list->tag, $list->tag,
$sitename $sitename

View File

@ -127,11 +127,11 @@ class PeopletagEditForm extends Form
$this->out->elementStart('li'); $this->out->elementStart('li');
$this->out->hidden('id', $id); $this->out->hidden('id', $id);
// TRANS: Field label for people tag. // TRANS: Field label for list.
$this->out->input('tag', _m('LABEL','Tag'), $this->out->input('tag', _m('LABEL','List'),
($this->out->arg('tag')) ? $this->out->arg('tag') : $tag, ($this->out->arg('tag')) ? $this->out->arg('tag') : $tag,
// TRANS: Field title for people tag. // TRANS: Field title for list.
_('Change the tag (letters, numbers, -, ., and _ are allowed).')); _('Change the list (letters, numbers, -, ., and _ are allowed).'));
$this->out->elementEnd('li'); $this->out->elementEnd('li');
$this->out->elementStart('li'); $this->out->elementStart('li');
@ -164,7 +164,7 @@ class PeopletagEditForm extends Form
*/ */
function formActions() function formActions()
{ {
// TRANS: Button text to save a people tag. // TRANS: Button text to save a list.
$this->out->submit('submit', _('Save')); $this->out->submit('submit', _('Save'));
$this->out->submit('form_action-yes', $this->out->submit('form_action-yes',
// TRANS: Button text to delete a list. // TRANS: Button text to delete a list.
@ -178,11 +178,11 @@ class PeopletagEditForm extends Form
function showProfileList() function showProfileList()
{ {
$tagged = $this->peopletag->getTagged(); $tagged = $this->peopletag->getTagged();
// TRANS: Header in people tag edit form. // TRANS: Header in list edit form.
$this->out->element('h2', null, _('Add or remove people')); $this->out->element('h2', null, _('Add or remove people'));
$this->out->elementStart('div', 'profile_search_wrap'); $this->out->elementStart('div', 'profile_search_wrap');
// TRANS: Header in people tag edit form. // TRANS: Header in list edit form.
$this->out->element('h3', null, _m('HEADER','Search')); $this->out->element('h3', null, _m('HEADER','Search'));
$search = new SearchProfileForm($this->out, $this->peopletag); $search = new SearchProfileForm($this->out, $this->peopletag);
$search->show(); $search->show();

View File

@ -138,7 +138,7 @@ class PeopletagGroupNav extends Widget
// Edit // Edit
$this->out->menuItem(common_local_url('editpeopletag', array('tagger' => $user->nickname, $this->out->menuItem(common_local_url('editpeopletag', array('tagger' => $user->nickname,
'tag' => $tag->tag)), 'tag' => $tag->tag)),
// TRANS: Menu item in people tag navigation panel. // TRANS: Menu item in list navigation panel.
_m('MENU','Edit'), _m('MENU','Edit'),
// TRANS: Menu item title in list navigation panel. // TRANS: Menu item title in list navigation panel.
// TRANS: %s is a list. // TRANS: %s is a list.

View File

@ -256,7 +256,7 @@ class PeopletagListItem extends Widget
$this->out->elementStart('a', $this->out->elementStart('a',
array('href' => common_local_url('peopletagsbyuser', array('href' => common_local_url('peopletagsbyuser',
array('nickname' => $this->profile->nickname, 'private' => 1)))); array('nickname' => $this->profile->nickname, 'private' => 1))));
// TRANS: Privacy mode text in people tag list item for private tags. // TRANS: Privacy mode text in list list item for private list.
$this->out->element('span', 'privacy_mode', _m('MODE','Private')); $this->out->element('span', 'privacy_mode', _m('MODE','Private'));
$this->out->elementEnd('a'); $this->out->elementEnd('a');
} }

View File

@ -3,7 +3,7 @@
* StatusNet - the distributed open-source microblogging tool * StatusNet - the distributed open-source microblogging tool
* Copyright (C) 2011, StatusNet, Inc. * Copyright (C) 2011, StatusNet, Inc.
* *
* Stream of notices for a people tag * Stream of notices for a list
* *
* PHP version 5 * PHP version 5
* *
@ -35,7 +35,7 @@ if (!defined('STATUSNET')) {
} }
/** /**
* Stream of notices for a people tag * Stream of notices for a list
* *
* @category Stream * @category Stream
* @package StatusNet * @package StatusNet
@ -59,7 +59,7 @@ class PeopletagNoticeStream extends ScopingNoticeStream
} }
/** /**
* Stream of notices for a people tag * Stream of notices for a list
* *
* @category Stream * @category Stream
* @package StatusNet * @package StatusNet

View File

@ -83,8 +83,8 @@ class PeopletagsWidget extends Widget
function label() function label()
{ {
// TRANS: Label in people tags widget. // TRANS: Label in lists widget.
return _m('LABEL','Tags by you'); return _m('LABEL','Your lists');
} }
function showTags() function showTags()
@ -131,8 +131,8 @@ class PeopletagsWidget extends Widget
'action' => common_local_url('tagprofile', array('id' => $this->tagged->id)))); 'action' => common_local_url('tagprofile', array('id' => $this->tagged->id))));
$this->out->elementStart('fieldset'); $this->out->elementStart('fieldset');
// TRANS: Fieldset legend in people tags widget. // TRANS: Fieldset legend in lists widget.
$this->out->element('legend', null, _m('LEGEND','Edit tags')); $this->out->element('legend', null, _m('LEGEND','Edit lists'));
$this->out->hidden('token', common_session_token()); $this->out->hidden('token', common_session_token());
$this->out->hidden('id', $this->tagged->id); $this->out->hidden('id', $this->tagged->id);

View File

@ -2,7 +2,7 @@
/** /**
* StatusNet, the distributed open-source microblogging tool * StatusNet, the distributed open-source microblogging tool
* *
* People tags a user has been tagged with * Lists a user is in
* *
* PHP version 5 * PHP version 5
* *
@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
} }
/** /**
* People tags a user has been tagged with * List a user has is in
* *
* @category Widget * @category Widget
* @package StatusNet * @package StatusNet

View File

@ -102,7 +102,7 @@ class SubscribePeopletagForm extends Form
*/ */
function formActions() function formActions()
{ {
// TRANS: Button text for subscribing to a people tag. // TRANS: Button text for subscribing to a list.
$this->out->submit('submit', _m('BUTTON', 'Subscribe')); $this->out->submit('submit', _m('BUTTON', 'Subscribe'));
} }

View File

@ -186,8 +186,8 @@ class UntagButton extends Form
function formLegend() function formLegend()
{ {
// TRANS: Form legend. // TRANS: Form legend.
// TRANS: %1$s is a nickname, $2$s is a people tag. // TRANS: %1$s is a nickname, $2$s is a list.
$this->out->element('legend', null, sprintf(_('Untag %1$s as %2$s'), $this->out->element('legend', null, sprintf(_('Remove %1$s from list %2$s'),
$this->profile->nickname, $this->peopletag->tag)); $this->profile->nickname, $this->peopletag->tag));
} }
@ -263,9 +263,9 @@ class TagButton extends Form
*/ */
function formLegend() function formLegend()
{ {
// TRANS: Legend on form to add a tag to a profile. // TRANS: Legend on form to add a profile to a list.
// TRANS: %1$s is a nickname, %2$s ia a people tag. // TRANS: %1$s is a nickname, %2$s is a list.
$this->out->element('legend', null, sprintf(_('Tag %1$s as %2$s'), $this->out->element('legend', null, sprintf(_('Add %1$s to list %2$s'),
$this->profile->nickname, $this->peopletag->tag)); $this->profile->nickname, $this->peopletag->tag));
} }

View File

@ -102,7 +102,7 @@ class UnsubscribePeopletagForm extends Form
*/ */
function formActions() function formActions()
{ {
// TRANS: Button text for unsubscribing from a people tag. // TRANS: Button text for unsubscribing from a list.
$this->out->submit('submit', _m('BUTTON','Unsubscribe')); $this->out->submit('submit', _m('BUTTON','Unsubscribe'));
} }
} }

View File

@ -885,8 +885,8 @@ class OStatusPlugin extends Plugin
return true; return true;
} else { } else {
$oprofile->garbageCollect(); $oprofile->garbageCollect();
// TRANS: Exception thrown when subscription of remote people tag fails. // TRANS: Exception thrown when subscription to remote list fails.
throw new Exception(_m('Failed subscribing to remote people tag.')); throw new Exception(_m('Failed subscribing to remote list.'));
} }
} }
} }
@ -922,7 +922,7 @@ class OStatusPlugin extends Plugin
$act->object = $oprofile->asActivityObject(); $act->object = $oprofile->asActivityObject();
$act->time = time(); $act->time = time();
$act->title = _m('Unfollow people tag'); $act->title = _m('Unfollow list');
$act->content = sprintf(_m('%1$s stopped following the list %2$s by %3$s.'), $act->content = sprintf(_m('%1$s stopped following the list %2$s by %3$s.'),
$sub->getBestName(), $sub->getBestName(),
$oprofile->getBestName(), $oprofile->getBestName(),

View File

@ -104,9 +104,9 @@ class OStatusInitAction extends Action
// TRANS: Button text to join a group. // TRANS: Button text to join a group.
$submit = _m('BUTTON','Join'); $submit = _m('BUTTON','Join');
} else if ($this->peopletag && $this->tagger) { } else if ($this->peopletag && $this->tagger) {
// TRANS: Form legend. %1$s is a people tag, %2$s is a tagger's name. // TRANS: Form legend. %1$s is a list, %2$s is a tagger's name.
$header = sprintf(_m('Subscribe to people tagged %1$s by %2$s'), $this->peopletag, $this->tagger); $header = sprintf(_m('Subscribe to list %1$s by %2$s'), $this->peopletag, $this->tagger);
// TRANS: Button text to subscribe to a people tag. // TRANS: Button text to subscribe to a list.
$submit = _m('BUTTON','Subscribe'); $submit = _m('BUTTON','Subscribe');
// TRANS: Button text. // TRANS: Button text.
} else { } else {
@ -167,7 +167,7 @@ class OStatusInitAction extends Action
$this->connectWebfinger($this->profile); $this->connectWebfinger($this->profile);
} else { } else {
// TRANS: Client error. // TRANS: Client error.
$this->clientError(_m("Must provide a remote profile.")); $this->clientError(_m('Must provide a remote profile.'));
} }
} }
@ -218,7 +218,7 @@ class OStatusInitAction extends Action
return common_local_url('userbyid', array('id' => $user->id)); return common_local_url('userbyid', array('id' => $user->id));
} else { } else {
// TRANS: Client error. // TRANS: Client error.
$this->clientError("No such user."); $this->clientError(_m('No such user.'));
} }
} else if ($this->group) { } else if ($this->group) {
$group = Local_group::staticGet('nickname', $this->group); $group = Local_group::staticGet('nickname', $this->group);
@ -226,12 +226,12 @@ class OStatusInitAction extends Action
return common_local_url('groupbyid', array('id' => $group->group_id)); return common_local_url('groupbyid', array('id' => $group->group_id));
} else { } else {
// TRANS: Client error. // TRANS: Client error.
$this->clientError("No such group."); $this->clientError(_m('No such group.'));
} }
} else if ($this->peopletag && $this->tagger) { } else if ($this->peopletag && $this->tagger) {
$user = User::staticGet('nickname', $this->tagger); $user = User::staticGet('nickname', $this->tagger);
if (empty($user)) { if (empty($user)) {
$this->clientError("No such user."); $this->clientError(_m('No such user.'));
} }
$peopletag = Profile_list::getByTaggerAndTag($user->id, $this->peopletag); $peopletag = Profile_list::getByTaggerAndTag($user->id, $this->peopletag);
@ -239,10 +239,10 @@ class OStatusInitAction extends Action
return common_local_url('profiletagbyid', return common_local_url('profiletagbyid',
array('tagger_id' => $user->id, 'id' => $peopletag->id)); array('tagger_id' => $user->id, 'id' => $peopletag->id));
} }
$this->clientError("No such people tag."); $this->clientError(_m('No such list.'));
} else { } else {
// TRANS: Client error. // TRANS: Client error.
$this->clientError("No local user or group nickname provided."); $this->clientError(_m('No local user or group nickname provided.'));
} }
} }

View File

@ -70,9 +70,9 @@ class OStatusPeopletagAction extends OStatusSubAction
$this->elementStart('ul', 'form_data'); $this->elementStart('ul', 'form_data');
$this->elementStart('li'); $this->elementStart('li');
$this->input('profile', $this->input('profile',
_m('Subscribe to people tag'), _m('Subscribe to list'),
$this->profile_uri, $this->profile_uri,
_m("Address of the OStatus people tag, like http://example.net/user/all/tag")); _m("Address of the OStatus list, like http://example.net/user/all/tag"));
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementEnd('ul'); $this->elementEnd('ul');
@ -95,7 +95,7 @@ class OStatusPeopletagAction extends OStatusSubAction
$cur = common_current_user(); $cur = common_current_user();
if ($ptag->hasSubscriber($cur->id)) { if ($ptag->hasSubscriber($cur->id)) {
$this->element('div', array('class' => 'error'), $this->element('div', array('class' => 'error'),
_m('You are already subscribed to this people tag.')); _m('You are already subscribed to this list.'));
$ok = false; $ok = false;
} else { } else {
$ok = true; $ok = true;
@ -157,8 +157,8 @@ class OStatusPeopletagAction extends OStatusSubAction
function title() function title()
{ {
// TRANS: Page title for OStatus remote people tag subscription form // TRANS: Page title for OStatus remote list subscription form
return _m('Confirm subscription to remote people tag'); return _m('Confirm subscription to remote list');
} }
/** /**

View File

@ -112,6 +112,6 @@ class OStatusTagAction extends OStatusInitAction
function title() function title()
{ {
return _m('OStatus people tag'); return _m('OStatus list');
} }
} }

View File

@ -183,7 +183,7 @@ class PushHubAction extends Action
$user = User::staticGet('id', $user); $user = User::staticGet('id', $user);
if (!$list || !$user || $list->tagger != $user->id) { if (!$list || !$user || $list->tagger != $user->id) {
// TRANS: Client exception. %s is a feed URL. // TRANS: Client exception. %s is a feed URL.
throw new ClientException(sprintf(_m('Invalid hub.topic %s; people tag does not exist.'),$feed)); throw new ClientException(sprintf(_m('Invalid hub.topic %s; list does not exist.'),$feed));
} else { } else {
return true; return true;
} }

View File

@ -1209,7 +1209,7 @@ class Ostatus_profile extends Managed_DataObject
if ($object->link && common_valid_http_url($object->link)) { if ($object->link && common_valid_http_url($object->link)) {
return $object->link; return $object->link;
} }
throw new ServerException("No author ID URI found."); throw new ServerException(_m('No author ID URI found.'));
} }
/** /**
@ -1234,7 +1234,7 @@ class Ostatus_profile extends Managed_DataObject
if (!$homeuri) { if (!$homeuri) {
common_log(LOG_DEBUG, __METHOD__ . " empty actor profile URI: " . var_export($activity, true)); common_log(LOG_DEBUG, __METHOD__ . " empty actor profile URI: " . var_export($activity, true));
throw new Exception('No profile URI.'); throw new Exception(_m('No profile URI.'));
} }
$user = User::staticGet('uri', $homeuri); $user = User::staticGet('uri', $homeuri);
@ -1252,7 +1252,7 @@ class Ostatus_profile extends Managed_DataObject
if ($ptag) { if ($ptag) {
$local_user = User::staticGet('id', $ptag->tagger); $local_user = User::staticGet('id', $ptag->tagger);
if (!empty($local_user)) { if (!empty($local_user)) {
throw new Exception('Local people tag cannot be referenced as remote.'); throw new Exception(_m('Local list cannot be referenced as remote.'));
} }
} }
@ -1326,7 +1326,7 @@ class Ostatus_profile extends Managed_DataObject
$oprofile->peopletag_id = $ptag->insert(); $oprofile->peopletag_id = $ptag->insert();
if (!$oprofile->peopletag_id) { if (!$oprofile->peopletag_id) {
throw new ServerException('Cannot save local people tag.'); throw new ServerException(_m('Cannot save local list.'));
} }
} }
@ -1772,7 +1772,7 @@ class Ostatus_profile extends Managed_DataObject
if (!$result) { if (!$result) {
common_log_db_error($oprofile, 'INSERT', __FILE__); common_log_db_error($oprofile, 'INSERT', __FILE__);
// TRANS: Exception. %s is a webfinger address. // TRANS: Exception. %s is a webfinger address.
throw new Exception(sprintf(_m('Could not save ostatus_profile for "%s".'),$addr)); throw new Exception(sprintf(_m('Could not save OStatus profile for "%s".'),$addr));
} }
self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), $oprofile->uri); self::cacheSet(sprintf('ostatus_profile:webfinger:%s', $addr), $oprofile->uri);