function title()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST' && $this->boolean('delete')) {
- // TRANS: Title for edit people tag page after deleting a tag.
- // TRANS: %s is a tag.
+ // TRANS: Title for edit list page after deleting a tag.
+ // TRANS: %s is a list.
return sprintf(_('Delete %s list'), $this->peopletag->tag);
}
- // TRANS: Title for edit people tag page.
- // TRANS: %s is a tag.
+ // TRANS: Title for edit list page.
+ // TRANS: %s is a list.
return sprintf(_('Edit list %s'), $this->peopletag->tag);
}
}
if (!$this->peopletag) {
- // TRANS: Client error displayed when referring to a non-exsting people tag.
+ // TRANS: Client error displayed when referring to a non-exsting list.
$this->clientError(_('No such list.'), 404);
return false;
}
$this->element('p', 'instructions', $this->confirm);
} else {
$this->element('p', 'instructions',
- // TRANS: Form instruction for edit people tag form.
+ // TRANS: Form instruction for edit list form.
_('Use this form to edit the list.'));
}
}
if (!$result) {
common_log_db_error($this->group, 'UPDATE', __FILE__);
- // TRANS: TRANS: Server error displayed when updating a people tag fails.
+ // TRANS: TRANS: Server error displayed when updating a list fails.
$this->serverError(_('Could not update list.'));
}
$this->peopletag = Profile_list::pkeyGet(array('tagger' => $user->id, 'tag' => $tag));
if (!$this->peopletag) {
- // TRANS: Client error displayed when referring to non-existing people tag.
+ // TRANS: Client error displayed when referring to a non-existing list.
$this->clientError(_('No such list.'), 404);
return false;
}
function title()
{
if ($this->page == 1) {
- // TRANS: Title for list of people tagged by the user with a tag.
- // TRANS: %1$s is a tag, %2$s is a username.
+ // TRANS: Title for list of people listed by the user.
+ // TRANS: %1$s is a list, %2$s is a username.
return sprintf(_('People listed in %1$s by %2$s'),
$this->peopletag->tag, $this->tagger->nickname);
} else {
- // TRANS: Title for list of people tagged by the user with a tag.
- // TRANS: %1$s is a tag, %2$s is a username, %2$s is a page number.
+ // TRANS: Title for list of people listed by the user.
+ // TRANS: %1$s is a list, %2$s is a username, %2$s is a page number.
return sprintf(_('People listed in %1$s by %2$s, page %3$d'),
$this->peopletag->tag, $this->user->nickname,
$this->page);
function showAnonymousMessage()
{
$notice =
- // TRANS: Message displayed for anonymous users on page that displays people tags for a user.
+ // TRANS: Message displayed for anonymous users on page that displays lists for a user.
// TRANS: This message contains Markdown links in the form [description](links).
// TRANS: %s is a tagger nickname.
sprintf(_('These are lists for **%s**. ' .
function showEmptyListMessage()
{
- // TRANS: Message displayed on page that displays people tags for a user when there are none.
+ // TRANS: Message displayed on page that displays lists for a user when there are none.
// TRANS: This message contains Markdown links in the form [description](links).
// TRANS: %s is a tagger nickname.
$message = sprintf(_('%s has not been [listed](%%%%doc.lists%%%%) by anyone yet.'), $this->tagged->nickname);
function title()
{
if ($this->page == 1) {
- // TRANS: Title for page that displays people tags subscribed to by a user.
+ // TRANS: Title for page that displays lists subscribed to by a user.
// TRANS: %s is a profile nickname.
return sprintf(_('Lists subscribed to by %s'), $this->profile->nickname);
} else {
- // TRANS: Title for page that displays people tags subscribed to by a user.
+ // TRANS: Title for page that displays lists subscribed to by a user.
// TRANS: %1$s is a profile nickname, %2$d is a page number.
return sprintf(_('Lists subscribed to by %1$s, page %2$d'), $this->profile->nickname, $this->page);
}
function showAnonymousMessage()
{
$notice =
- // TRANS: Message displayed for anonymous users on page that displays people tags subscribed to by a user.
+ // TRANS: Message displayed for anonymous users on page that displays lists subscribed to by a user.
// TRANS: This message contains Markdown links in the form [description](links).
// TRANS: %s is a profile nickname.
sprintf(_('These are lists subscribed to by **%s**. ' .
function showSuccessContent()
{
if (Event::handle('onStartRegisterSuccess', array($this))) {
-
$nickname = $this->arg('nickname');
$profileurl = common_local_url('showstream',
{
if ($this->page > 1) {
if($this->peopletag->private) {
- // TRANS: Title for private people tag timeline.
+ // TRANS: Title for private list timeline.
// TRANS: %1$s is a people tag, %2$s is a page number.
return sprintf(_('Private timeline for %1$s list by you, page %2$d'),
$this->peopletag->tag, $this->page);
$current = common_current_user();
if (!empty($current) && $current->id == $this->peopletag->tagger) {
- // TRANS: Title for public people tag timeline where the viewer is the tagger.
+ // TRANS: Title for public list timeline where the viewer is the tagger.
// TRANS: %1$s is a people tag, %2$s is a page number.
return sprintf(_('Timeline for %1$s list by you, page %2$d'),
$this->peopletag->tag, $this->page);
}
- // TRANS: Title for private people tag timeline.
+ // TRANS: Title for private list timeline.
// TRANS: %1$s is a people tag, %2$s is the tagger's nickname, %3$d is a page number.
return sprintf(_('Timeline for %1$s list by %2$s, page %3$d'),
$this->peopletag->tag,
);
} else {
if($this->peopletag->private) {
- // TRANS: Title for private people tag timeline.
- // TRANS: %s is a people tag.
+ // TRANS: Title for private list timeline.
+ // TRANS: %s is a list.
return sprintf(_('Private timeline of %s list by you'),
$this->peopletag->tag);
}
$current = common_current_user();
if (!empty($current) && $current->id == $this->peopletag->tagger) {
- // TRANS: Title for public people tag timeline where the viewer is the tagger.
- // TRANS: %s is a people tag.
+ // TRANS: Title for public list timeline where the viewer is the tagger.
+ // TRANS: %s is a list.
return sprintf(_('Timeline for %s list by you'),
$this->peopletag->tag);
}
- // TRANS: Title for private people tag timeline.
- // TRANS: %1$s is a people tag, %2$s is the tagger's nickname.
+ // TRANS: Title for private list timeline.
+ // TRANS: %1$s is a list, %2$s is the tagger's nickname.
return sprintf(_('Timeline for %1$s list by %2$s'),
$this->peopletag->tag,
$this->tagger->nickname
)
),
// TRANS: Feed title.
- // TRANS: %1$s is a people tag, %2$s is tagger's nickname.
+ // TRANS: %1$s is a list, %2$s is tagger's nickname.
sprintf(_('Feed for %1$s list by %2$s (Atom)'),
$this->peopletag->tag, $this->tagger->nickname
)
function showEmptyListMessage()
{
- // TRANS: Empty list message for people tag timeline.
- // TRANS: %1$s is a people tag, %2$s is a tagger's nickname.
+ // TRANS: Empty list message for list timeline.
+ // TRANS: %1$s is a list, %2$s is a tagger's nickname.
$message = sprintf(_('This is the timeline for %1$s list by %2$s but no one has posted anything yet.'),
$this->peopletag->tag,
$this->tagger->nickname) . ' ';
if (Event::handle('StartShowTaggedProfilesMiniList', array($this))) {
$title = '';
- $current = common_current_user();
- if(!empty($current) && $this->peopletag->tagger == $current->id) {
- // TRANS: Header on show profile tag page.
- // TRANS: %s is a people tag.
- $title = sprintf(_('Listed'), $this->peopletag->tag);
- } else {
- // TRANS: Header on show profile tag page.
- // TRANS: %1$s is a people tag, %2$s is a tagger's nickname.
- $title = sprintf(_('Listed'),
- $this->peopletag->tag,
- $this->tagger->nickname);
- }
-
- $this->element('h2', null, $title);
+ // TRANS: Header on show list page.
+ $this->element('h2', null, _('Listed'));
$cnt = 0;
$pml = new ProfileMiniList($profile, $this);
$cnt = $pml->show();
if ($cnt == 0) {
- // TRANS: Content of "People tagged x by a user" if there are no tagged users.
+ // TRANS: Content of "Listed" page if there are no listed users.
$this->element('p', null, _('(None)'));
}
}
}
$this->out->element('input', $attrs);
- // TRANS: Checkbox label for enabling Jabber messages for a profile in a subscriptions list.
- $this->out->element('label', array('for' => 'jabber-'.$this->profile->id), _('IM'));
+ // TRANS: Checkbox label for enabling IM messages for a profile in a subscriptions list.
+ $this->out->element('label', array('for' => 'jabber-'.$this->profile->id), _m('LABEL','IM'));
} else {
$this->out->hidden('jabber', $sub->jabber);
}
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class GroupMiniList extends GroupList
{
function show()
* Copyright (C) 2011, StatusNet, Inc.
*
* Section for an invite button
- *
+ *
* PHP version 5
*
* This program is free software: you can redistribute it and/or modify
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class InviteButtonSection extends Section
{
function showTitle()
function showContent()
{
- $this->out->element('a',
+ $this->out->element('a',
array('href' => common_local_url('invite'),
'class' => 'invite_button'),
- _('Invite more colleagues'));
+ // TRANS: Button text for inviting more users to the StatusNet instance.
+ _m('BUTTON','Invite more colleagues'));
return false;
}
-}
\ No newline at end of file
+}
*/
function formLegend()
{
- // TRANS: Form legend for people tag edit form.
- // TRANS: %s is a people tag.
+ // TRANS: Form legend for list edit form.
+ // TRANS: %s is a list.
$this->out->element('legend', null, sprintf(_('Edit list %s'), $this->peopletag->tag));
}
$this->out->elementStart('li');
$desclimit = Profile_list::maxDescription();
if ($desclimit == 0) {
- // TRANS: Field title for description of people tag.
+ // TRANS: Field title for description of list.
$descinstr = _('Describe the list or topic.');
} else {
- // TRANS: Field title for description of people tag.
+ // TRANS: Field title for description of list.
// TRANS: %d is the maximum number of characters for the description.
$descinstr = sprintf(_m('Describe the list or topic in %d character.',
'Describe the list or topic in %d characters.',
$desclimit),
$desclimit);
}
- // TRANS: Field label for description of people tag.
+ // TRANS: Field label for description of list.
$this->out->textarea('description', _('Description'),
($this->out->arg('description')) ? $this->out->arg('description') : $description,
$descinstr);
- // TRANS: Checkbox label to mark a people tag private.
+ // TRANS: Checkbox label to mark a list private.
$this->out->checkbox('private', _('Private'), $private);
$this->out->elementEnd('li');
$this->out->elementEnd('ul');
// TRANS: Button text to save a people tag.
$this->out->submit('submit', _('Save'));
$this->out->submit('form_action-yes',
- // TRANS: Button text to delete a people tag.
+ // TRANS: Button text to delete a list.
_m('BUTTON','Delete'),
'submit',
'delete',
- // TRANS: Button title to delete a people tag.
+ // TRANS: Button title to delete a list.
_('Delete this list.'));
}
// People tag timeline
$this->out->menuItem(common_local_url('showprofiletag', array('tagger' => $user_profile->nickname,
'tag' => $tag->tag)),
- // TRANS: Menu item in people tag navigation panel.
+ // TRANS: Menu item in list navigation panel.
_m('MENU','List'),
- // TRANS: Menu item title in people tag navigation panel.
- // TRANS: %1$s is a tag, %2$s is a nickname.
+ // TRANS: Menu item title in list navigation panel.
+ // TRANS: %1$s is a list, %2$s is a nickname.
sprintf(_('%1$s list by %2$s.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'showprofiletag', 'nav_timeline_peopletag');
// Tagged
$this->out->menuItem(common_local_url('peopletagged', array('tagger' => $user->nickname,
'tag' => $tag->tag)),
- // TRANS: Menu item in people tag navigation panel.
+ // TRANS: Menu item in list navigation panel.
_m('MENU','Listed'),
- // TRANS: Menu item title in people tag navigation panel.
- // TRANS: %1$s is a tag, %2$s is a nickname.
+ // TRANS: Menu item title in list navigation panel.
+ // TRANS: %1$s is a list, %2$s is a nickname.
sprintf(_('%1$s list by %2$s.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'peopletagged', 'nav_peopletag_tagged');
// Subscribers
$this->out->menuItem(common_local_url('peopletagsubscribers', array('tagger' => $user->nickname,
'tag' => $tag->tag)),
- // TRANS: Menu item in people tag navigation panel.
+ // TRANS: Menu item in list navigation panel.
_m('MENU','Subscribers'),
- // TRANS: Menu item title in people tag navigation panel.
- // TRANS: %1$s is a tag, %2$s is a nickname.
+ // TRANS: Menu item title in list navigation panel.
+ // TRANS: %1$s is a list, %2$s is a nickname.
sprintf(_('Subscribers to %1$s list by %2$s.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'peopletagsubscribers', 'nav_peopletag_subscribers');
'tag' => $tag->tag)),
// TRANS: Menu item in people tag navigation panel.
_m('MENU','Edit'),
- // TRANS: Menu item title in people tag navigation panel.
- // TRANS: %s is a tag.
+ // TRANS: Menu item title in list navigation panel.
+ // TRANS: %s is a list.
sprintf(_('Edit %s list by you.'), $tag->tag,
(($user_profile && $user_profile->fullname) ? $user_profile->fullname : $nickname)),
$action == 'editpeopletag', 'nav_peopletag_edit');
$this->out->element('a', array('href' =>
common_local_url('editpeopletag', array('tagger' => $this->profile->nickname,
'tag' => $this->peopletag->tag)),
- // TRANS: Title for link to edit people tag settings.
+ // TRANS: Title for link to edit list settings.
'title' => _('Edit list settings.')),
- // TRANS: Text for link to edit people tag settings.
+ // TRANS: Text for link to edit list settings.
_('Edit'));
$this->out->elementEnd('li');
}
_m('MENU','List Subscriptions'),
// TRANS: Tooltip for menu item in the group navigation page.
// TRANS: %s is the nickname of the group.
- sprintf(_m('TOOLTIP','Lists subscribed to by %s'), $nickname),
+ sprintf(_m('TOOLTIP','Lists subscribed to by %s.'), $nickname),
$action_name == 'peopletagsubscriptions',
'nav_list_group');
$this->out->menuItem(common_local_url('peopletagsforuser', array('nickname' =>
sprintf(_m('MENU','Lists with %s'), $nickname),
// TRANS: Tooltip for menu item in the group navigation page.
// TRANS: %s is the nickname of the group.
- sprintf(_m('TOOLTIP','Lists with %s'), $nickname),
+ sprintf(_m('TOOLTIP','Lists with %s.'), $nickname),
$action_name == 'peopletagsforuser',
'nav_lists_with');
$this->out->menuItem(common_local_url('peopletagsbyuser', array('nickname' =>
sprintf(_m('MENU','Lists by %s'), $nickname),
// TRANS: Tooltip for menu item in the group navigation page.
// TRANS: %s is the nickname of the group.
- sprintf(_m('TOOLTIP','Lists by %s'), $nickname),
+ sprintf(_m('TOOLTIP','Lists by %s.'), $nickname),
$action_name == 'peopletagsbyuser',
'nav_lists_by');
Event::handle('EndGroupGroupNav', array($this));
function title()
{
- // TRANS: Title for section contaning people tags with the most subscribers.
- return _('Lists with most subscribers');
+ // TRANS: Title for section contaning lists with the most subscribers.
+ return _('Popular lists');
}
function divId()
class PeopletagSectionItem extends PeopletagListItem
{
-
function showStart()
{
}
function showTag()
{
- // TRANS: Tag summary. %1$d is the number of users tagged with the tag,
- // TRANS: %2$d is the number of subscribers to the tag.
+ // TRANS: List summary. %1$d is the number of users in the list,
+ // TRANS: %2$d is the number of subscribers to the list.
$title = sprintf(_('Listed: %1$d Subscribers: %2$d'),
$this->peopletag->taggedCount(),
$this->peopletag->subscriberCount());
if (!empty($user) && $this->profile->id == $user->id) {
return sprintf(_('Lists with you'));
}
- // TRANS: Title for page that displays
- // which people tags a user has been tagged with.
+ // TRANS: Title for page that displays which people tags a user has been tagged with.
// TRANS: %s is a profile name.
return sprintf(_('Lists with %s'), $this->profile->getBestName());
}
function title()
{
- // TRANS: Title for page that displays people tags a user has subscribed to.
+ // TRANS: Title for page that displays lists a user has subscribed to.
return _('List subscriptions');
}
function title()
{
- // TRANS: Title for personal tag cloud section. %s is a user nickname.
- return sprintf(_('Tags'), $this->user->nickname);
+ // TRANS: Title for personal tag cloud section.
+ return _m('TITLE','Tags');
}
function getTags()
array('nickname' => $this->profile->nickname));
$this->elementStart('h2');
- // TRANS: H2 text for user list membership statistics.
$this->element('a',
array('href' => $url),
+ // TRANS: H2 text for user list membership statistics.
_('Lists'));
$this->text(' ');
$this->text($lists->N);
$oprofile = Ostatus_profile::staticGet('peopletag_id', $peopletag->id);
if ($oprofile) {
if (!$oprofile->subscribe()) {
- // TRANS: Exception thrown when setup of remote people tag subscription fails.
+ // TRANS: Exception thrown when setup of remote list subscription fails.
throw new Exception(_m('Could not set up remote list subscription.'));
}
// TRANS: Title for remote follow list.
$act->title = _m('TITLE','Follow list');
// TRANS: Success message for remote list follow through OStatus.
- // TRANS: %1$s is the subscriber name, %2$s the prople tag, %3$s is the tagger's name.
+ // TRANS: %1$s is the subscriber name, %2$s is the list, %3$s is the tagger's name.
$act->content = sprintf(_m("%1$s is now following people listed in %2$s by %3$s."),
$sub->getBestName(),
$oprofile->getBestName(),
function getInstructions()
{
+ // TRANS: Instructions for OStatus list subscription form.
return _m('You can subscribe to lists from other supported sites. Paste the lists\'s URI below:');
}