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

Commit b9eee437 authored by Evan Prodromou's avatar Evan Prodromou

Merge branch '1.0.x' into emailregistration

parents b86bb033 5e50acb2

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
......@@ -106,8 +106,8 @@ class AddpeopletagAction extends Action
$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;
}
......@@ -161,7 +161,7 @@ class AddpeopletagAction extends Action
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');
......
......@@ -260,7 +260,7 @@ class EditpeopletagAction extends OwnerDesignAction
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).',
......@@ -318,7 +318,7 @@ class EditpeopletagAction extends OwnerDesignAction
'tag' => $tag)),
303);
} else {
// TRANS: Edit people tag form success message.
// TRANS: Edit list form success message.
$this->showForm(_('Options saved.'));
}
}
......
......@@ -92,8 +92,8 @@ class PeopletagsubscribersAction extends OwnerDesignAction
$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;
}
......@@ -103,14 +103,14 @@ class PeopletagsubscribersAction extends OwnerDesignAction
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);
}
......
......@@ -97,8 +97,8 @@ class ProfilecompletionAction extends Action
$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;
}
......
......@@ -63,8 +63,8 @@ class ProfiletagbyidAction extends Action
$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;
}
......
......@@ -53,33 +53,33 @@ class PublicpeopletagcloudAction extends Action
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');
......@@ -132,8 +132,8 @@ class PublicpeopletagcloudAction extends Action
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) {
......@@ -173,8 +173,8 @@ class PublicpeopletagcloudAction extends Action
$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');
......
......@@ -107,8 +107,8 @@ class RemovepeopletagAction extends Action
$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;
}
......@@ -147,14 +147,14 @@ class RemovepeopletagAction extends Action
$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));
}
......@@ -163,7 +163,7 @@ class RemovepeopletagAction extends Action
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');
......
......@@ -63,9 +63,9 @@ class SelftagAction extends Action
$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;
}
......
......@@ -307,7 +307,7 @@ class ShowprofiletagAction extends Action
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');
......
......@@ -56,7 +56,7 @@ class SubscribepeopletagAction extends Action
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
......@@ -91,8 +91,8 @@ class SubscribepeopletagAction extends Action
}
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;
}
......@@ -120,18 +120,18 @@ class SubscribepeopletagAction extends Action
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));
......
......@@ -74,12 +74,12 @@ class TagprofileAction extends Action
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)
......@@ -88,7 +88,7 @@ class TagprofileAction extends Action
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');
......@@ -104,7 +104,7 @@ class TagprofileAction extends Action
{
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);
......@@ -147,8 +147,8 @@ class TagprofileAction extends Action
'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);
......@@ -158,14 +158,14 @@ class TagprofileAction extends Action
$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');
......@@ -240,8 +240,8 @@ class TagprofileAction extends Action
$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();
}
......@@ -257,7 +257,7 @@ class TagprofileAction extends Action
$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');
}
}
......
......@@ -57,7 +57,7 @@ class UnsubscribepeopletagAction extends Action
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
......@@ -92,8 +92,8 @@ class UnsubscribepeopletagAction extends Action
}
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;
}
......@@ -122,9 +122,9 @@ class UnsubscribepeopletagAction extends Action
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));
......
......@@ -167,10 +167,10 @@ class Profile_tag extends Memcached_DataObject
$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;
}
......
......@@ -50,8 +50,8 @@ class Profile_tag_subscription extends Memcached_DataObject
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);
......@@ -77,8 +77,8 @@ class Profile_tag_subscription extends Memcached_DataObject
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);
......
......@@ -62,14 +62,14 @@ class AtomListNoticeFeed extends AtomNoticeFeed
$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
......
......@@ -127,11 +127,11 @@ class PeopletagEditForm extends Form
$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');
......@@ -164,7 +164,7 @@ class PeopletagEditForm extends Form
*/
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.
......@@ -178,11 +178,11 @@ class PeopletagEditForm extends Form
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();
......
......@@ -138,7 +138,7 @@ class PeopletagGroupNav extends Widget
// 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.
......
......@@ -256,7 +256,7 @@ class PeopletagListItem extends Widget
$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');
}
......
......@@ -3,7 +3,7 @@
* 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
*
......@@ -35,7 +35,7 @@ if (!defined('STATUSNET')) {
}
/**
* Stream of notices for a people tag
* Stream of notices for a list
*
* @category Stream
* @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
* @package StatusNet
......
......@@ -83,8 +83,8 @@ class PeopletagsWidget extends Widget
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()
......@@ -131,8 +131,8 @@ class PeopletagsWidget extends Widget
'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);
......
......@@ -2,7 +2,7 @@
/**
* StatusNet, the distributed open-source microblogging tool
*
* People tags a user has been tagged with
* Lists a user is in
*
* 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
* @package StatusNet
......
......@@ -102,7 +102,7 @@ class SubscribePeopletagForm extends Form
*/
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'));
}
......
......@@ -186,8 +186,8 @@ class UntagButton extends Form
function formLegend()
{
// TRANS: Form legend.
// TRANS: %1$s is a nickname, $2$s is a people tag.
$this->out->element('l