L10n/i18n updates.
Whitespace updates.
*
* @see DB_DataObject
*/
-
class TagSub extends Managed_DataObject
{
public $__table = 'tagsub'; // table name
*
* @return boolean hook return
*/
-
function onEndSubGroupNav($widget)
{
$action = $widget->out;
if (!empty($tags) && count($tags) > 0) {
$tagSubMenu = new TagSubMenu($menu->out, $user, $tags);
+ // TRANS: Menu item text for tags submenu.
$menu->submenu(_m('Tags'), $tagSubMenu);
}
}
return true;
}
-
}
*
* @see UnsubscribeForm
*/
-
class TagSubForm extends Form
{
/**
* Name of tag to subscribe to
*/
-
var $tag = '';
/**
* @param HTMLOutputter $out output channel
* @param string $tag name of tag to subscribe to
*/
-
function __construct($out=null, $tag=null)
{
parent::__construct($out);
*
* @return int ID of the form
*/
-
function id()
{
return 'tag-subscribe-' . $this->tag;
}
-
/**
* class of the form
*
* @return string of the form class
*/
-
function formClass()
{
// class to match existing styles...
return 'form_user_subscribe ajax';
}
-
/**
* Action of the form
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('tagsub', array('tag' => $this->tag));
}
-
/**
* Legend of the Form
*
*/
function formLegend()
{
+ // TRANS: Form legend.
$this->out->element('legend', null, _m('Subscribe to this tag'));
}
*
* @return void
*/
-
function formData()
{
$this->out->hidden('subscribeto-' . $this->tag,
*
* @return void
*/
-
function formActions()
{
- $this->out->submit('submit', _m('BUTTON','Subscribe'), 'submit', null, _m('Subscribe to this tag'));
+ // TRANS: Submit button text to subscribe to a tag.
+ $this->out->submit('submit', _m('BUTTON','Subscribe'),
+ // TRANS: Submit button title to subscribe to a tag.
+ 'submit', null, _m('Subscribe to this tag.'));
}
}
* Copyright (C) 2011, StatusNet, Inc.
*
* Menu to show tags you're subscribed to
- *
+ *
* 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 TagSubMenu extends Menu
{
protected $user;
$this->out->menuItem(common_local_url('tag',
array('tag' => $tag)),
sprintf('#%s', $tag),
- sprintf(_('Notices tagged with %s'), $tag),
+ // TRANS: Menu item title. %s is a tag.
+ sprintf(_('Notices tagged with "%s".'), $tag),
$this->actionName == 'tag' && $this->action->arg('tag') == $tag,
'nav_streams_tag_'.$tag);
}
$this->out->elementEnd('ul');
}
-
}
if ($this->user->id === $current_user->id) {
// TRANS: Tag subscription list text when the logged in user has no tag subscriptions.
$message = _m('You are not listening to any hash tags right now. You can push the "Subscribe" button ' .
- 'on any hashtag page to automatically receive any public messages on this site that use that ' .
- 'tag, even if you are not subscribed to the poster.');
+ 'on any hashtag page to automatically receive any public messages on this site that use that ' .
+ 'tag, even if you are not subscribed to the poster.');
} else {
// TRANS: Tag subscription list text when looking at the subscriptions for a of a user other
// TRANS: than the logged in user that has no tag subscriptions. %s is the user nickname.
- $message = sprintf(_m('%s is not listening to any tags.'), $this->user->nickname);
+ $message = sprintf(_m('%s is not following any tags.'), $this->user->nickname);
}
}
else {
// TRANS: Subscription list text when looking at the subscriptions for a of a user that has none
// TRANS: as an anonymous user. %s is the user nickname.
- $message = sprintf(_m('%s is not listening to any tags.'), $this->user->nickname);
+ $message = sprintf(_m('%s is not following any tags.'), $this->user->nickname);
}
$this->elementStart('div', 'guide');
if (!empty($cur) && $cur->id == $this->owner->id) {
$this->showOwnerControls();
}
-
+
$url = common_local_url('tag', array('tag' => $tag));
- $linkline = sprintf(_m('#<a href="%s">%s</a> since %s'),
+ // TRANS: %1$s is a URL to a tag, %2$s is a tag,
+ // TRANS: %3$s a date string.
+ $linkline = sprintf(_m('#<a href="%1$s">%2$s</a> since %3$s'),
htmlspecialchars($url),
htmlspecialchars($tag),
common_date_string($tagsub->created));
*
* @see UnsubscribeForm
*/
-
class TagUnsubForm extends TagSubForm
{
/**
*
* @return int ID of the form
*/
-
function id()
{
return 'tag-unsubscribe-' . $this->tag;
}
-
/**
* class of the form
*
* @return string of the form class
*/
-
function formClass()
{
// class to match existing styles...
return 'form_user_unsubscribe ajax';
}
-
/**
* Action of the form
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('tagunsub', array('tag' => $this->tag));
}
-
/**
* Legend of the Form
*
*/
function formLegend()
{
+ // TRANS: Form legend.
$this->out->element('legend', null, _m('Unsubscribe from this tag'));
}
*
* @return void
*/
-
function formActions()
{
- $this->out->submit('submit', _m('BUTTON','Unsubscribe'), 'submit', null, _m('Unsubscribe from this tag'));
+ // TRANS: Submit button text to unsubscribe from a tag.
+ $this->out->submit('submit', _m('BUTTON','Unsubscribe'),
+ // TRANS: Submit button title to unsubscribe from a tag.
+ 'submit', null, _m('Unsubscribe from this tag.'));
}
}