Commit 2640232c authored by Siebrand Mazeland's avatar Siebrand Mazeland

Update translator documentation.

L10n and i18n updates.
Break long lines in README before or at 80 characters.
Superfluous whitespace removed.
parent f9f437f5
...@@ -108,6 +108,7 @@ class EchoPlugin extends Plugin ...@@ -108,6 +108,7 @@ class EchoPlugin extends Plugin
'author' => 'Zach Copley', 'author' => 'Zach Copley',
'homepage' => 'http://status.net/wiki/Plugin:Echo', 'homepage' => 'http://status.net/wiki/Plugin:Echo',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('Use <a href="http://aboutecho.com/">Echo</a>'. _m('Use <a href="http://aboutecho.com/">Echo</a>'.
' to add commenting to notice pages.')); ' to add commenting to notice pages.'));
return true; return true;
......
...@@ -57,6 +57,7 @@ class EmailAuthenticationPlugin extends Plugin ...@@ -57,6 +57,7 @@ class EmailAuthenticationPlugin extends Plugin
'author' => 'Craig Andrews', 'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:EmailAuthentication', 'homepage' => 'http://status.net/wiki/Plugin:EmailAuthentication',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('The Email Authentication plugin allows users to login using their email address.')); _m('The Email Authentication plugin allows users to login using their email address.'));
return true; return true;
} }
......
The Email Authentication plugin allows users to login using their email address. The Email Authentication plugin allows users to login using their email address.
The provided email address is used to lookup the user's nickname, then that nickname and the provided password is checked. The provided email address is used to lookup the user's nickname, then that
nickname and the provided password is checked.
Installation Installation
============ ============
add "addPlugin('emailAuthentication');" to the bottom of your config.php add "addPlugin('emailAuthentication');" to the bottom of your config.php.
...@@ -43,7 +43,6 @@ if (!defined('STATUSNET')) { ...@@ -43,7 +43,6 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class EmailSummaryPlugin extends Plugin class EmailSummaryPlugin extends Plugin
{ {
/** /**
...@@ -51,13 +50,11 @@ class EmailSummaryPlugin extends Plugin ...@@ -51,13 +50,11 @@ class EmailSummaryPlugin extends Plugin
* *
* @return boolean hook value * @return boolean hook value
*/ */
function onCheckSchema() function onCheckSchema()
{ {
$schema = Schema::get(); $schema = Schema::get();
// For storing user-submitted flags on profiles // For storing user-submitted flags on profiles
$schema->ensureTable('email_summary_status', $schema->ensureTable('email_summary_status',
array(new ColumnDef('user_id', 'integer', null, array(new ColumnDef('user_id', 'integer', null,
false, 'PRI'), false, 'PRI'),
...@@ -82,7 +79,6 @@ class EmailSummaryPlugin extends Plugin ...@@ -82,7 +79,6 @@ class EmailSummaryPlugin extends Plugin
* @return boolean hook value; true means continue processing, false means stop. * @return boolean hook value; true means continue processing, false means stop.
* *
*/ */
function onAutoload($cls) function onAutoload($cls)
{ {
$dir = dirname(__FILE__); $dir = dirname(__FILE__);
...@@ -107,9 +103,7 @@ class EmailSummaryPlugin extends Plugin ...@@ -107,9 +103,7 @@ class EmailSummaryPlugin extends Plugin
* @param array &$versions array of version data * @param array &$versions array of version data
* *
* @return boolean hook value; true means continue processing, false means stop. * @return boolean hook value; true means continue processing, false means stop.
*
*/ */
function onPluginVersion(&$versions) function onPluginVersion(&$versions)
{ {
$versions[] = array('name' => 'EmailSummary', $versions[] = array('name' => 'EmailSummary',
...@@ -117,6 +111,7 @@ class EmailSummaryPlugin extends Plugin ...@@ -117,6 +111,7 @@ class EmailSummaryPlugin extends Plugin
'author' => 'Evan Prodromou', 'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:EmailSummary', 'homepage' => 'http://status.net/wiki/Plugin:EmailSummary',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('Send an email summary of the inbox to users.')); _m('Send an email summary of the inbox to users.'));
return true; return true;
} }
...@@ -128,7 +123,6 @@ class EmailSummaryPlugin extends Plugin ...@@ -128,7 +123,6 @@ class EmailSummaryPlugin extends Plugin
* *
* @return boolean hook value * @return boolean hook value
*/ */
function onEndInitializeQueueManager($qm) function onEndInitializeQueueManager($qm)
{ {
$qm->connect('sitesum', 'SiteEmailSummaryHandler'); $qm->connect('sitesum', 'SiteEmailSummaryHandler');
...@@ -143,7 +137,6 @@ class EmailSummaryPlugin extends Plugin ...@@ -143,7 +137,6 @@ class EmailSummaryPlugin extends Plugin
* *
* @return boolean hook value * @return boolean hook value
*/ */
function onEndEmailFormData($action) function onEndEmailFormData($action)
{ {
$user = common_current_user(); $user = common_current_user();
...@@ -151,7 +144,7 @@ class EmailSummaryPlugin extends Plugin ...@@ -151,7 +144,7 @@ class EmailSummaryPlugin extends Plugin
$action->elementStart('li'); $action->elementStart('li');
$action->checkbox('emailsummary', $action->checkbox('emailsummary',
// TRANS: Checkbox label in e-mail preferences form. // TRANS: Checkbox label in e-mail preferences form.
_m('Send me a periodic summary of updates from my network.'), _m('Send me a periodic summary of updates from my network'),
Email_summary_status::getSendSummary($user->id)); Email_summary_status::getSendSummary($user->id));
$action->elementEnd('li'); $action->elementEnd('li');
return true; return true;
...@@ -164,7 +157,6 @@ class EmailSummaryPlugin extends Plugin ...@@ -164,7 +157,6 @@ class EmailSummaryPlugin extends Plugin
* *
* @return boolean hook value * @return boolean hook value
*/ */
function onEndEmailSaveForm($action) function onEndEmailSaveForm($action)
{ {
$sendSummary = $action->boolean('emailsummary'); $sendSummary = $action->boolean('emailsummary');
......
...@@ -46,7 +46,6 @@ require_once INSTALLDIR . '/classes/Memcached_DataObject.php'; ...@@ -46,7 +46,6 @@ require_once INSTALLDIR . '/classes/Memcached_DataObject.php';
* *
* @see DB_DataObject * @see DB_DataObject
*/ */
class Email_summary_status extends Memcached_DataObject class Email_summary_status extends Memcached_DataObject
{ {
public $__table = 'email_summary_status'; // table name public $__table = 'email_summary_status'; // table name
...@@ -78,7 +77,6 @@ class Email_summary_status extends Memcached_DataObject ...@@ -78,7 +77,6 @@ class Email_summary_status extends Memcached_DataObject
* *
* @return array array of column definitions * @return array array of column definitions
*/ */
function table() function table()
{ {
return array('user_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL, return array('user_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
...@@ -93,7 +91,6 @@ class Email_summary_status extends Memcached_DataObject ...@@ -93,7 +91,6 @@ class Email_summary_status extends Memcached_DataObject
* *
* @return array list of key field names * @return array list of key field names
*/ */
function keys() function keys()
{ {
return array_keys($this->keyTypes()); return array_keys($this->keyTypes());
...@@ -121,7 +118,6 @@ class Email_summary_status extends Memcached_DataObject ...@@ -121,7 +118,6 @@ class Email_summary_status extends Memcached_DataObject
* *
* @return array magic three-false array that stops auto-incrementing. * @return array magic three-false array that stops auto-incrementing.
*/ */
function sequenceKey() function sequenceKey()
{ {
return array(false, false, false); return array(false, false, false);
...@@ -134,7 +130,6 @@ class Email_summary_status extends Memcached_DataObject ...@@ -134,7 +130,6 @@ class Email_summary_status extends Memcached_DataObject
* *
* @return int flag for whether to send this user a summary email * @return int flag for whether to send this user a summary email
*/ */
static function getSendSummary($user_id) static function getSendSummary($user_id)
{ {
$ess = Email_summary_status::staticGet('user_id', $user_id); $ess = Email_summary_status::staticGet('user_id', $user_id);
...@@ -153,7 +148,6 @@ class Email_summary_status extends Memcached_DataObject ...@@ -153,7 +148,6 @@ class Email_summary_status extends Memcached_DataObject
* *
* @return Email_summary_status instance for this user, with count already incremented. * @return Email_summary_status instance for this user, with count already incremented.
*/ */
static function getLastSummaryID($user_id) static function getLastSummaryID($user_id)
{ {
$ess = Email_summary_status::staticGet('user_id', $user_id); $ess = Email_summary_status::staticGet('user_id', $user_id);
......
...@@ -42,7 +42,6 @@ if (!defined('STATUSNET')) { ...@@ -42,7 +42,6 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class SiteEmailSummaryHandler extends QueueHandler class SiteEmailSummaryHandler extends QueueHandler
{ {
...@@ -55,7 +54,6 @@ class SiteEmailSummaryHandler extends QueueHandler ...@@ -55,7 +54,6 @@ class SiteEmailSummaryHandler extends QueueHandler
* *
* @return string * @return string
*/ */
function transport() function transport()
{ {
return 'sitesum'; return 'sitesum';
...@@ -67,7 +65,6 @@ class SiteEmailSummaryHandler extends QueueHandler ...@@ -67,7 +65,6 @@ class SiteEmailSummaryHandler extends QueueHandler
* @param mixed $object * @param mixed $object
* @return boolean true on success, false on failure * @return boolean true on success, false on failure
*/ */
function handle($object) function handle($object)
{ {
$qm = QueueManager::get(); $qm = QueueManager::get();
...@@ -93,4 +90,3 @@ class SiteEmailSummaryHandler extends QueueHandler ...@@ -93,4 +90,3 @@ class SiteEmailSummaryHandler extends QueueHandler
return true; return true;
} }
} }
...@@ -41,11 +41,9 @@ if (!defined('STATUSNET')) { ...@@ -41,11 +41,9 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class UserEmailSummaryHandler extends QueueHandler class UserEmailSummaryHandler extends QueueHandler
{ {
// Maximum number of notices to include by default. This is probably too much. // Maximum number of notices to include by default. This is probably too much.
const MAX_NOTICES = 200; const MAX_NOTICES = 200;
/** /**
...@@ -57,7 +55,6 @@ class UserEmailSummaryHandler extends QueueHandler ...@@ -57,7 +55,6 @@ class UserEmailSummaryHandler extends QueueHandler
* *
* @return string * @return string
*/ */
function transport() function transport()
{ {
return 'sitesum'; return 'sitesum';
...@@ -69,7 +66,6 @@ class UserEmailSummaryHandler extends QueueHandler ...@@ -69,7 +66,6 @@ class UserEmailSummaryHandler extends QueueHandler
* @param mixed $object * @param mixed $object
* @return boolean true on success, false on failure * @return boolean true on success, false on failure
*/ */
function handle($user_id) function handle($user_id)
{ {
// Skip if they've asked not to get summaries // Skip if they've asked not to get summaries
...@@ -128,7 +124,9 @@ class UserEmailSummaryHandler extends QueueHandler ...@@ -128,7 +124,9 @@ class UserEmailSummaryHandler extends QueueHandler
'style' => 'background-color: #ffffff; border: 4px solid #4c609a; padding: 10px;')); 'style' => 'background-color: #ffffff; border: 4px solid #4c609a; padding: 10px;'));
$out->elementStart('div', array('style' => 'color: #ffffff; background-color: #4c609a; font-weight: bold; margin-bottom: 10px; padding: 4px;')); $out->elementStart('div', array('style' => 'color: #ffffff; background-color: #4c609a; font-weight: bold; margin-bottom: 10px; padding: 4px;'));
$out->raw(sprintf(_m('Recent updates from %1s for %2s:'), // TRANS: Text in e-mail summary.
// TRANS: %1$s is the StatusNet sitename, %2$s is the recipient's profile name.
$out->raw(sprintf(_m('Recent updates from %1$s for %2s:'),
common_config('site', 'name'), common_config('site', 'name'),
$profile->getBestName())); $profile->getBestName()));
$out->elementEnd('div'); $out->elementEnd('div');
...@@ -137,7 +135,6 @@ class UserEmailSummaryHandler extends QueueHandler ...@@ -137,7 +135,6 @@ class UserEmailSummaryHandler extends QueueHandler
'style' => 'border: none; border-collapse: collapse;', 'cellpadding' => '6')); 'style' => 'border: none; border-collapse: collapse;', 'cellpadding' => '6'));
while ($notice->fetch()) { while ($notice->fetch()) {
$profile = Profile::staticGet('id', $notice->profile_id); $profile = Profile::staticGet('id', $notice->profile_id);
if (empty($profile)) { if (empty($profile)) {
...@@ -208,7 +205,6 @@ class UserEmailSummaryHandler extends QueueHandler ...@@ -208,7 +205,6 @@ class UserEmailSummaryHandler extends QueueHandler
array('Content-Type' => 'text/html; charset=UTF-8')); array('Content-Type' => 'text/html; charset=UTF-8'));
if (empty($ess)) { if (empty($ess)) {
$ess = new Email_summary_status(); $ess = new Email_summary_status();
$ess->user_id = $user_id; $ess->user_id = $user_id;
...@@ -217,9 +213,7 @@ class UserEmailSummaryHandler extends QueueHandler ...@@ -217,9 +213,7 @@ class UserEmailSummaryHandler extends QueueHandler
$ess->modified = common_sql_now(); $ess->modified = common_sql_now();
$ess->insert(); $ess->insert();
} else { } else {
$orig = clone($ess); $orig = clone($ess);
$ess->last_summary_id = $new_top; $ess->last_summary_id = $new_top;
......
...@@ -23,7 +23,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { ...@@ -23,7 +23,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
/** /**
* Queue handler for watching new notices and posting to enjit. * Queue handler for watching new notices and posting to enjit.
* @fixme is this actually being used/functional atm? * @todo FIXME: Is this actually being used/functional atm?
*/ */
class EnjitQueueHandler extends QueueHandler class EnjitQueueHandler extends QueueHandler
{ {
......
...@@ -105,7 +105,6 @@ class EventPlugin extends MicroappPlugin ...@@ -105,7 +105,6 @@ class EventPlugin extends MicroappPlugin
* *
* @return boolean hook value; true means continue processing, false means stop. * @return boolean hook value; true means continue processing, false means stop.
*/ */
function onRouterInitialized($m) function onRouterInitialized($m)
{ {
$m->connect('main/event/new', $m->connect('main/event/new',
...@@ -130,12 +129,14 @@ class EventPlugin extends MicroappPlugin ...@@ -130,12 +129,14 @@ class EventPlugin extends MicroappPlugin
'author' => 'Evan Prodromou', 'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:Event', 'homepage' => 'http://status.net/wiki/Plugin:Event',
'description' => 'description' =>
// TRANS: Plugin description.
_m('Event invitations and RSVPs.')); _m('Event invitations and RSVPs.'));
return true; return true;
} }
function appTitle() { function appTitle() {
return _m('Event'); // TRANS: Title for event application.
return _m('TITLE','Event');
} }
function tag() { function tag() {
...@@ -162,12 +163,13 @@ class EventPlugin extends MicroappPlugin ...@@ -162,12 +163,13 @@ class EventPlugin extends MicroappPlugin
function saveNoticeFromActivity($activity, $actor, $options=array()) function saveNoticeFromActivity($activity, $actor, $options=array())
{ {
if (count($activity->objects) != 1) { if (count($activity->objects) != 1) {
throw new Exception('Too many activity objects.'); throw new Exception(_('Too many activity objects.'));
} }
$happeningObj = $activity->objects[0]; $happeningObj = $activity->objects[0];
if ($happeningObj->type != Happening::OBJECT_TYPE) { if ($happeningObj->type != Happening::OBJECT_TYPE) {
// TRANS: Exception thrown when event plugin comes across a non-event type object.
throw new Exception(_m('Wrong type for object.')); throw new Exception(_m('Wrong type for object.'));
} }
...@@ -189,12 +191,14 @@ class EventPlugin extends MicroappPlugin ...@@ -189,12 +191,14 @@ class EventPlugin extends MicroappPlugin
$happening = Happening::staticGet('uri', $happeningObj->id); $happening = Happening::staticGet('uri', $happeningObj->id);
if (empty($happening)) { if (empty($happening)) {
// FIXME: save the event // FIXME: save the event
// TRANS: Exception thrown when trying to RSVP for an unknown event.
throw new Exception(_m('RSVP for unknown event.')); throw new Exception(_m('RSVP for unknown event.'));
} }
$notice = RSVP::saveNew($actor, $happening, $activity->verb, $options); $notice = RSVP::saveNew($actor, $happening, $activity->verb, $options);
break; break;
default: default:
throw new Exception(_m('Unknown verb for events')); // TRANS: Exception thrown when event plugin comes across a undefined verb.
throw new Exception(_m('Unknown verb for events.'));
} }
return $notice; return $notice;
...@@ -207,7 +211,6 @@ class EventPlugin extends MicroappPlugin ...@@ -207,7 +211,6 @@ class EventPlugin extends MicroappPlugin
* *
* @return ActivityObject * @return ActivityObject
*/ */
function activityObjectFromNotice($notice) function activityObjectFromNotice($notice)
{ {
$happening = null; $happening = null;
...@@ -225,12 +228,14 @@ class EventPlugin extends MicroappPlugin ...@@ -225,12 +228,14 @@ class EventPlugin extends MicroappPlugin
} }
if (empty($happening)) { if (empty($happening)) {
// TRANS: Exception thrown when event plugin comes across a unknown object type.
throw new Exception(_m('Unknown object type.')); throw new Exception(_m('Unknown object type.'));
} }
$notice = $happening->getNotice(); $notice = $happening->getNotice();
if (empty($notice)) { if (empty($notice)) {
// TRANS: Exception thrown when referring to a notice that is not an event an in event context.
throw new Exception(_m('Unknown event notice.')); throw new Exception(_m('Unknown event notice.'));
} }
...@@ -264,7 +269,6 @@ class EventPlugin extends MicroappPlugin ...@@ -264,7 +269,6 @@ class EventPlugin extends MicroappPlugin
* *
* @return ActivityObject * @return ActivityObject
*/ */
function onEndNoticeAsActivity($notice, &$act) { function onEndNoticeAsActivity($notice, &$act) {
switch ($notice->object_type) { switch ($notice->object_type) {
case RSVP::POSITIVE: case RSVP::POSITIVE:
...@@ -282,7 +286,6 @@ class EventPlugin extends MicroappPlugin ...@@ -282,7 +286,6 @@ class EventPlugin extends MicroappPlugin
* @param Notice $notice * @param Notice $notice
* @param HTMLOutputter $out * @param HTMLOutputter $out
*/ */
function showNotice($notice, $out) function showNotice($notice, $out)
{ {
switch ($notice->object_type) { switch ($notice->object_type) {
...@@ -365,6 +368,7 @@ class EventPlugin extends MicroappPlugin ...@@ -365,6 +368,7 @@ class EventPlugin extends MicroappPlugin
$out->elementStart('div', 'event-times'); // VEVENT/EVENT-TIMES IN $out->elementStart('div', 'event-times'); // VEVENT/EVENT-TIMES IN
// TRANS: Field label for event description.
$out->element('strong', null, _m('Time:')); $out->element('strong', null, _m('Time:'));
$out->element('abbr', array('class' => 'dtstart', $out->element('abbr', array('class' => 'dtstart',
...@@ -385,6 +389,7 @@ class EventPlugin extends MicroappPlugin ...@@ -385,6 +389,7 @@ class EventPlugin extends MicroappPlugin
if (!empty($event->location)) { if (!empty($event->location)) {
$out->elementStart('div', 'event-location'); $out->elementStart('div', 'event-location');
// TRANS: Field label for event description.
$out->element('strong', null, _m('Location:')); $out->element('strong', null, _m('Location:'));
$out->element('span', 'location', $event->location); $out->element('span', 'location', $event->location);
$out->elementEnd('div'); $out->elementEnd('div');
...@@ -392,6 +397,7 @@ class EventPlugin extends MicroappPlugin ...@@ -392,6 +397,7 @@ class EventPlugin extends MicroappPlugin
if (!empty($event->description)) { if (!empty($event->description)) {
$out->elementStart('div', 'event-description'); $out->elementStart('div', 'event-description');
// TRANS: Field label for event description.
$out->element('strong', null, _m('Description:')); $out->element('strong', null, _m('Description:'));
$out->element('span', 'description', $event->description); $out->element('span', 'description', $event->description);
$out->elementEnd('div'); $out->elementEnd('div');
...@@ -400,6 +406,7 @@ class EventPlugin extends MicroappPlugin ...@@ -400,6 +406,7 @@ class EventPlugin extends MicroappPlugin
$rsvps = $event->getRSVPs(); $rsvps = $event->getRSVPs();
$out->elementStart('div', 'event-rsvps'); $out->elementStart('div', 'event-rsvps');
// TRANS: Field label for event description.
$out->element('strong', null, _m('Attending:')); $out->element('strong', null, _m('Attending:'));
$out->element('span', 'event-rsvps', $out->element('span', 'event-rsvps',
// TRANS: RSVP counts. // TRANS: RSVP counts.
...@@ -433,7 +440,6 @@ class EventPlugin extends MicroappPlugin ...@@ -433,7 +440,6 @@ class EventPlugin extends MicroappPlugin
* @param HTMLOutputter $out * @param HTMLOutputter $out
* @return Widget * @return Widget
*/ */
function entryForm($out) function entryForm($out)
{ {
return new EventForm($out); return new EventForm($out);
...@@ -444,7 +450,6 @@ class EventPlugin extends MicroappPlugin ...@@ -444,7 +450,6 @@ class EventPlugin extends MicroappPlugin
* *
* @param Notice $notice * @param Notice $notice
*/ */
function deleteRelated($notice) function deleteRelated($notice)
{ {
switch ($notice->object_type) { switch ($notice->object_type) {
......
...@@ -47,7 +47,6 @@ if (!defined('STATUSNET')) { ...@@ -47,7 +47,6 @@ if (!defined('STATUSNET')) {
* *
* @see Managed_DataObject * @see Managed_DataObject
*/ */
class Happening extends Managed_DataObject class Happening extends Managed_DataObject
{ {
const OBJECT_TYPE = 'http://activitystrea.ms/schema/1.0/event'; const OBJECT_TYPE = 'http://activitystrea.ms/schema/1.0/event';
...@@ -122,6 +121,7 @@ class Happening extends Managed_DataObject ...@@ -122,6 +121,7 @@ class Happening extends Managed_DataObject
if (array_key_exists('uri', $options)) { if (array_key_exists('uri', $options)) {
$other = Happening::staticGet('uri', $options['uri']); $other = Happening::staticGet('uri', $options['uri']);
if (!empty($other)) { if (!empty($other)) {
// TRANS: Client exception thrown when trying to create an event that already exists.
throw new ClientException(_m('Event already exists.')); throw new ClientException(_m('Event already exists.'));
} }
} }
...@@ -163,6 +163,9 @@ class Happening extends Managed_DataObject ...@@ -163,6 +163,9 @@ class Happening extends Managed_DataObject
$location, $location,
$description); $description);
// TRANS: Rendered event description. %1$s is a title, %2$s is start time, %3$s is start time,
// TRANS: %4$s is end time, %5$s is end time, %6$s is location, %7$s is description.
// TRANS: Class names should not be translated.
$rendered = sprintf(_m('<span class="vevent">'. $rendered = sprintf(_m('<span class="vevent">'.
'<span class="summary">%1$s</span> '. '<span class="summary">%1$s</span> '.
'<abbr class="dtstart" title="%2$s">%3$s</a> - '. '<abbr class="dtstart" title="%2$s">%3$s</a> - '.
......
...@@ -42,7 +42,6 @@ if (!defined('STATUSNET')) { ...@@ -42,7 +42,6 @@ if (!defined('STATUSNET')) {
* *
* @see Managed_DataObject * @see Managed_DataObject
*/ */
class RSVP extends Managed_DataObject class RSVP extends Managed_DataObject
{ {
const POSITIVE = 'http://activitystrea.ms/schema/1.0/rsvp-yes'; const POSITIVE = 'http://activitystrea.ms/schema/1.0/rsvp-yes';
...@@ -64,7 +63,6 @@ class RSVP extends Managed_DataObject ...@@ -64,7 +63,6 @@ class RSVP extends Managed_DataObject
* @param mixed $v Value to lookup * @param mixed $v Value to lookup
* *
* @return RSVP object found, or null for no hits * @return RSVP object found, or null for no hits
*
*/ */
function staticGet($k, $v=null) function staticGet($k, $v=null)
{ {
...@@ -77,7 +75,6 @@ class RSVP extends Managed_DataObject ...@@ -77,7 +75,6 @@ class RSVP extends Managed_DataObject
* @param array $kv array of key-value mappings