Update translator documentation accordingly.
Probably a few cases left where "tag[ged[" has to be replaced by "list[ed]".
$this->peopletag = Profile_list::staticGet('id', $id);
if (empty($this->peopletag)) {
- // TRANS: Client error displayed trying to reference a non-existing people tag.
- $this->clientError(_('No such people tag.'));
+ // TRANS: Client error displayed trying to reference a non-existing list.
+ $this->clientError(_('No such list.'));
return false;
}
if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head');
- // TRANS: Title after subscribing to a people tag.
+ // TRANS: Title after subscribing to a list.
$this->element('title', null, _('Subscribed'));
$this->elementEnd('head');
$this->elementStart('body');
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).',
'tag' => $tag)),
303);
} else {
- // TRANS: Edit people tag form success message.
+ // TRANS: Edit list form success message.
$this->showForm(_('Options saved.'));
}
}
$this->peopletag = Profile_list::pkeyGet(array('tagger' => $user->id, 'tag' => $tag));
if (!$this->peopletag) {
- // TRANS: Client error displayed trying to reference a non-existing people tag.
- $this->clientError(_('No such people tag.'), 404);
+ // TRANS: Client error displayed trying to reference a non-existing list.
+ $this->clientError(_('No such list.'), 404);
return false;
}
function title()
{
if ($this->page == 1) {
- // TRANS: Page title for list of people tag subscribers.
- // TRANS: %1$s is a tag, %2$s is a user nickname.
- return sprintf(_('Subscribers of people tagged %1$s by %2$s'),
+ // TRANS: Page title for list of list subscribers.
+ // TRANS: %1$s is a list, %2$s is a user nickname.
+ return sprintf(_('Subscribers to list %1$s by %2$s'),
$this->peopletag->tag, $this->tagger->nickname);
} else {
- // TRANS: Page title for list of people tag subscribers.
- // TRANS: %1$s is a tag, %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'),
+ // TRANS: Page title for list of list subscribers.
+ // TRANS: %1$s is a list, %2$s is a user nickname, %3$d is a page number.
+ return sprintf(_('Subscribers to list %1$s by %2$s, page %3$d'),
$this->peopletag->tag, $this->tagger->nickname,
$this->page);
}
$this->peopletag = Profile_list::staticGet('id', $id);
if (empty($this->peopletag)) {
- // TRANS: Client error displayed trying to reference a non-existing people tag.
- $this->clientError(_('No such people tag.'));
+ // TRANS: Client error displayed trying to reference a non-existing list.
+ $this->clientError(_('No such list.'));
return false;
}
$this->peopletag = Profile_list::staticGet('id', $id);
if (!$this->peopletag) {
- // TRANS: Client error displayed trying to reference a non-existing people tag.
- $this->clientError(_('No such people tag.'), 404);
+ // TRANS: Client error displayed trying to reference a non-existing list.
+ $this->clientError(_('No such list.'), 404);
return false;
}
function title()
{
- // TRANS: Title for page with public people tag cloud.
- return _('Public people tag cloud');
+ // TRANS: Title for page with public list cloud.
+ return _('Public list cloud');
}
function showPageNotice()
{
$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.
- sprintf(_('These are most used people tags on %s'),
+ sprintf(_('These are largest lists on %s'),
common_config('site', 'name')));
}
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).
- $message = _('No one has [tagged](%%doc.tags%%) anyone yet.') . ' ';
+ $message = _('No one has [listed](%%doc.tags%%) anyone yet.') . ' ';
if (common_logged_in()) {
- // TRANS: Additional empty list message on page with public people tag cloud for logged in users.
- $message .= _('Be the first to tag someone!');
+ // TRANS: Additional empty list message on page with public list cloud for logged in users.
+ $message .= _('Be the first to list someone!');
}
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).
- $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');
ksort($tw);
$this->elementStart('dl');
- // TRANS: DT element on on page with public people tag cloud.
- $this->element('dt', null, _('People tag cloud'));
+ // TRANS: DT element on on page with public list cloud.
+ $this->element('dt', null, _('List cloud'));
$this->elementStart('dd');
$this->elementStart('ul', 'tags xoxo tag-cloud');
foreach ($tw as $tag => $weight) {
$this->elementStart('li', $rel);
- // TRANS: Link title for number of people tagged. %d is the number of people tagged.
- $title = sprintf(_m('1 person tagged','%d people tagged',$weight),$weight);
+ // TRANS: Link title for number of listed people. %d is the number of listed people.
+ $title = sprintf(_m('1 person listed','%d people listed',$weight),$weight);
$this->element('a', array('href' => common_local_url('peopletag', array('tag' => $tag)),
'title' => $title), $tag);
$this->elementEnd('li');
$this->peopletag = Profile_list::staticGet('id', $id);
if (empty($this->peopletag)) {
- // TRANS: Client error displayed trying to reference a non-existing people tag.
- $this->clientError(_('No such people tag.'));
+ // TRANS: Client error displayed trying to reference a non-existing list.
+ $this->clientError(_('No such list.'));
return false;
}
$user = User::staticGet('id', $this->tagged->id);
if ($user) {
$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.
- sprintf(_('There was an unexpected error while tagging %s.'),
+ sprintf(_('There was an unexpected error while listing %s.'),
$user->nickname));
} 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.
- $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, ' .
'please try retrying later.'), $this->profile->profileurl));
}
if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8');
$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->elementEnd('head');
$this->elementStart('body');
$this->tag = $this->trimmed('tag');
if (!common_valid_profile_tag($this->tag)) {
- // TRANS: Client error displayed when trying to tag a profile with an invalid tag.
- // TRANS: %s is the invalid tag.
- $this->clientError(sprintf(_('Not a valid people tag: %s.'),
+ // TRANS: Client error displayed when trying to list a profile with an invalid list.
+ // TRANS: %s is the invalid list name.
+ $this->clientError(sprintf(_('Not a valid list: %s.'),
$this->tag));
return;
}
array('nickname' => $this->tagger->nickname,
'profiletag' => $this->peopletag->tag)),
'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.
_('Show all'));
$this->elementEnd('p');
if (!common_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;
}
// Only allow POST requests
}
if (!$this->peopletag || $this->peopletag->private) {
- // TRANS: Client error displayed trying to reference a non-existing people tag.
- $this->clientError(_('No such people tag.'), 404);
+ // TRANS: Client error displayed trying to reference a non-existing list.
+ $this->clientError(_('No such list.'), 404);
return false;
}
try {
Profile_tag_subscription::add($this->peopletag, $cur);
} catch (Exception $e) {
- // TRANS: Server error displayed subscribing to a people tag fails.
- // TRANS: %1$s is a user nickname, %2$s is a people tag.
- $this->serverError(sprintf(_('Could not subscribe user %1$s to people tag %2$s.'),
- $cur->nickname, $this->peopletag->tag) . ' ' . $e->getMessage());
+ // TRANS: Server error displayed subscribing to a list fails.
+ // 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 list %2$s: %3$s'),
+ $cur->nickname, $this->peopletag->tag), $e->getMessage());
}
if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head');
- // TRANS: Title of form to subscribe to a people tag.
- // TRANS: %1%s is a user nickname, %2$s is a people tag, %3$s is a tagger nickname.
- $this->element('title', null, sprintf(_('%1$s subscribed to people tag %2$s by %3$s'),
+ // TRANS: Title of form to subscribe to a list.
+ // 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 list %2$s by %3$s'),
$cur->nickname,
$this->peopletag->tag,
$this->tagger->nickname));
function title()
{
if (!$this->profile) {
- // TRANS: Title for people tag form when not on a profile page.
- return _('Tag a profile');
+ // TRANS: Title for list form when not on a profile page.
+ 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.
- return sprintf(_('Tag %s'), $this->profile->nickname);
+ return sprintf(_m('ADDTOLIST','List %s'), $this->profile->nickname);
}
function showForm($error=null)
if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8');
$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->elementEnd('head');
$this->elementStart('body');
{
if (Event::handle('StartShowTagProfileForm', array($this, $this->profile)) && $this->profile) {
$this->elementStart('div', 'entity_profile vcard author');
- // TRANS: Header in people tag form.
+ // TRANS: Header in list form.
$this->element('h2', null, _('User profile'));
$avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
'action' => common_local_url('tagprofile', array('id' => $this->profile->id))));
$this->elementStart('fieldset');
- // TRANS: Fieldset legend for people tag form.
- $this->element('legend', null, _('Tag user'));
+ // TRANS: Fieldset legend for list form.
+ $this->element('legend', null, _('List user'));
$this->hidden('token', common_session_token());
$this->hidden('id', $this->profile->id);
$this->elementStart('li');
$tags = Profile_tag::getTagsArray($user->id, $this->profile->id, $user->id);
- // TRANS: Field label on people tag form.
- $this->input('tags', _m('LABEL','Tags'),
+ // TRANS: Field label on list form.
+ $this->input('tags', _m('LABEL','Lists'),
($this->arg('tags')) ? $this->arg('tags') : implode(' ', $tags),
- // TRANS: Field title on people tag form.
- _('Tags for this user (letters, numbers, -, ., and _), comma- or space- separated.'));
+ // TRANS: Field title on list form.
+ _('Lists for this user (letters, numbers, -, ., and _), comma- or space- separated.'));
$this->elementEnd('li');
$this->elementEnd('ul');
- // TRANS: Button text to save people tags.
+ // TRANS: Button text to save lists.
$this->submit('save', _m('BUTTON','Save'));
$this->elementEnd('fieldset');
$this->elementEnd('form');
$this->elementEnd('body');
$this->elementEnd('html');
} else {
- // TRANS: Success message if people tags are saved.
- $this->error = _('Tags saved.');
+ // TRANS: Success message if lists are saved.
+ $this->error = _('Lists saved.');
$this->showForm();
}
$this->elementStart('div', 'instructions');
$this->element('p', null,
// 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');
}
}
if (!common_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;
}
// Only allow POST requests
}
if (!$this->peopletag || $this->peopletag->private) {
- // TRANS: Client error displayed trying to reference a non-existing people tag.
- $this->clientError(_('No such people tag.'), 404);
+ // TRANS: Client error displayed trying to reference a non-existing list.
+ $this->clientError(_('No such list.'), 404);
return false;
}
if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head');
- // TRANS: Page title for form that allows unsubscribing from a people tag.
- // TRANS: %1$s is a nickname, %2$s is a people tag, %3$s is a tagger nickname.
- $this->element('title', null, sprintf(_('%1$s unsubscribed to people tag %2$s by %3$s'),
+ // TRANS: Page title for form that allows unsubscribing from a list.
+ // 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 from list %2$s by %3$s'),
$cur->nickname,
$this->peopletag->tag,
$this->tagger->nickname));
$profile_list = Profile_list::ensureTag($tagger, $tag, $desc, $private);
if ($profile_list->taggedCount() >= common_config('peopletag', 'maxpeople')) {
- // TRANS: Client exception thrown trying to set one tag for more people than allowed.
- throw new ClientException(sprintf(_('You already have %1$d or more people tagged %2$s, ' .
+ // 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 in list %2$s, ' .
'which is the maximum allowed number.' .
- 'Try untagging others with the same tag first.'),
+ 'Try unlisting others first.'),
common_config('peopletag', 'maxpeople'), $tag));
return false;
}
if (!$result) {
common_log_db_error($sub, 'INSERT', __FILE__);
- // TRANS: Exception thrown when inserting a people tag subscription in the database fails.
- throw new Exception(_('Adding people tag subscription failed.'));
+ // TRANS: Exception thrown when inserting a list subscription in the database fails.
+ throw new Exception(_('Adding list subscription failed.'));
}
$ptag = Profile_list::staticGet('id', $peopletag->id);
if (!$result) {
common_log_db_error($sub, 'DELETE', __FILE__);
- // TRANS: Exception thrown when deleting a people tag subscription from the database fails.
- throw new Exception(_('Removing people tag subscription failed.'));
+ // TRANS: Exception thrown when deleting a list subscription from the database fails.
+ throw new Exception(_('Removing list subscription failed.'));
}
$peopletag->subscriberCount(true);
$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.
- $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);
$sitename = common_config('site', 'name');
$subtitle = sprintf(
// 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.
- _('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,
$list->tag,
$sitename
$this->out->elementStart('li');
$this->out->hidden('id', $id);
- // TRANS: Field label for people tag.
- $this->out->input('tag', _m('LABEL','Tag'),
+ // TRANS: Field label for list.
+ $this->out->input('tag', _m('LABEL','List'),
($this->out->arg('tag')) ? $this->out->arg('tag') : $tag,
- // TRANS: Field title for people tag.
- _('Change the tag (letters, numbers, -, ., and _ are allowed).'));
+ // TRANS: Field title for list.
+ _('Change the list (letters, numbers, -, ., and _ are allowed).'));
$this->out->elementEnd('li');
$this->out->elementStart('li');
*/
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('form_action-yes',
// TRANS: Button text to delete a list.
function showProfileList()
{
$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->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'));
$search = new SearchProfileForm($this->out, $this->peopletag);
$search->show();
// Edit
$this->out->menuItem(common_local_url('editpeopletag', array('tagger' => $user->nickname,
'tag' => $tag->tag)),
- // TRANS: Menu item in people tag navigation panel.
+ // TRANS: Menu item in list navigation panel.
_m('MENU','Edit'),
// TRANS: Menu item title in list navigation panel.
// TRANS: %s is a list.
$this->out->elementStart('a',
array('href' => common_local_url('peopletagsbyuser',
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->elementEnd('a');
}
* StatusNet - the distributed open-source microblogging tool
* Copyright (C) 2011, StatusNet, Inc.
*
- * Stream of notices for a people tag
+ * Stream of notices for a list
*
* PHP version 5
*
}
/**
- * Stream of notices for a people tag
+ * Stream of notices for a list
*
* @category Stream
* @package StatusNet
}
/**
- * Stream of notices for a people tag
+ * Stream of notices for a list
*
* @category Stream
* @package StatusNet
function label()
{
- // TRANS: Label in people tags widget.
- return _m('LABEL','Tags by you');
+ // TRANS: Label in lists widget.
+ return _m('LABEL','Your lists');
}
function showTags()
'action' => common_local_url('tagprofile', array('id' => $this->tagged->id))));
$this->out->elementStart('fieldset');
- // TRANS: Fieldset legend in people tags widget.
- $this->out->element('legend', null, _m('LEGEND','Edit tags'));
+ // TRANS: Fieldset legend in lists widget.
+ $this->out->element('legend', null, _m('LEGEND','Edit lists'));
$this->out->hidden('token', common_session_token());
$this->out->hidden('id', $this->tagged->id);
/**
* StatusNet, the distributed open-source microblogging tool
*
- * People tags a user has been tagged with
+ * Lists a user is in
*
* PHP version 5
*
}
/**
- * People tags a user has been tagged with
+ * List a user has is in
*
* @category Widget
* @package StatusNet
*/
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'));
}
function formLegend()
{
// TRANS: Form legend.
- // TRANS: %1$s is a nickname, $2$s is a people tag.
- $this->out->element('legend', null, sprintf(_('Untag %1$s as %2$s'),
+ // TRANS: %1$s is a nickname, $2$s is a list.
+ $this->out->element('legend', null, sprintf(_('Remove %1$s from list %2$s'),
$this->profile->nickname, $this->peopletag->tag));
}
*/
function formLegend()
{
- // TRANS: Legend on form to add a tag to a profile.
- // TRANS: %1$s is a nickname, %2$s ia a people tag.
- $this->out->element('legend', null, sprintf(_('Tag %1$s as %2$s'),
+ // TRANS: Legend on form to add a profile to a list.
+ // TRANS: %1$s is a nickname, %2$s is a list.
+ $this->out->element('legend', null, sprintf(_('Add %1$s to list %2$s'),
$this->profile->nickname, $this->peopletag->tag));
}
*/
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'));
}
}
return true;
} else {
$oprofile->garbageCollect();
- // TRANS: Exception thrown when subscription of remote people tag fails.
- throw new Exception(_m('Failed subscribing to remote people tag.'));
+ // TRANS: Exception thrown when subscription to remote list fails.
+ throw new Exception(_m('Failed subscribing to remote list.'));
}
}
}
$act->object = $oprofile->asActivityObject();
$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.'),
$sub->getBestName(),
$oprofile->getBestName(),
// TRANS: Button text to join a group.
$submit = _m('BUTTON','Join');
} else if ($this->peopletag && $this->tagger) {
- // TRANS: Form legend. %1$s is a people tag, %2$s is a tagger's name.
- $header = sprintf(_m('Subscribe to people tagged %1$s by %2$s'), $this->peopletag, $this->tagger);
- // TRANS: Button text to subscribe to a people tag.
+ // TRANS: Form legend. %1$s is a list, %2$s is a tagger's name.
+ $header = sprintf(_m('Subscribe to list %1$s by %2$s'), $this->peopletag, $this->tagger);
+ // TRANS: Button text to subscribe to a list.
$submit = _m('BUTTON','Subscribe');
// TRANS: Button text.
} else {
$this->connectWebfinger($this->profile);
} else {
// TRANS: Client error.
- $this->clientError(_m("Must provide a remote profile."));
+ $this->clientError(_m('Must provide a remote profile.'));
}
}
return common_local_url('userbyid', array('id' => $user->id));
} else {
// TRANS: Client error.
- $this->clientError("No such user.");
+ $this->clientError(_m('No such user.'));
}
} else if ($this->group) {
$group = Local_group::staticGet('nickname', $this->group);
return common_local_url('groupbyid', array('id' => $group->group_id));
} else {
// TRANS: Client error.
- $this->clientError("No such group.");
+ $this->clientError(_m('No such group.'));
}
} else if ($this->peopletag && $this->tagger) {
$user = User::staticGet('nickname', $this->tagger);
if (empty($user)) {
- $this->clientError("No such user.");
+ $this->clientError(_m('No such user.'));
}
$peopletag = Profile_list::getByTaggerAndTag($user->id, $this->peopletag);
return common_local_url('profiletagbyid',
array('tagger_id' => $user->id, 'id' => $peopletag->id));
}
- $this->clientError("No such people tag.");
+ $this->clientError(_m('No such list.'));
} else {
// TRANS: Client error.
- $this->clientError("No local user or group nickname provided.");
+ $this->clientError(_m('No local user or group nickname provided.'));
}
}
$this->elementStart('ul', 'form_data');
$this->elementStart('li');
$this->input('profile',
- _m('Subscribe to people tag'),
+ _m('Subscribe to list'),
$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('ul');
$cur = common_current_user();
if ($ptag->hasSubscriber($cur->id)) {
$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;
} else {
$ok = true;
function title()
{
- // TRANS: Page title for OStatus remote people tag subscription form
- return _m('Confirm subscription to remote people tag');
+ // TRANS: Page title for OStatus remote list subscription form
+ return _m('Confirm subscription to remote list');
}
/**
function title()
{
- return _m('OStatus people tag');
+ return _m('OStatus list');
}
}
$user = User::staticGet('id', $user);
if (!$list || !$user || $list->tagger != $user->id) {
// 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 {
return true;
}
if ($object->link && common_valid_http_url($object->link)) {
return $object->link;
}
- throw new ServerException("No author ID URI found.");
+ throw new ServerException(_m('No author ID URI found.'));
}
/**
if (!$homeuri) {
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);
if ($ptag) {
$local_user = User::staticGet('id', $ptag->tagger);
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.'));
}
}
$oprofile->peopletag_id = $ptag->insert();
if (!$oprofile->peopletag_id) {
- throw new ServerException('Cannot save local people tag.');
+ throw new ServerException(_m('Cannot save local list.'));
}
}
if (!$result) {
common_log_db_error($oprofile, 'INSERT', __FILE__);
// 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);