* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class AnonymousFavePlugin extends Plugin
{
-
// Array of users who should not have anon faving. The default is
// that anonymous faving is allowed for all users.
public $restricted = array();
'class' => 'notice-tally'
)
);
- $out->raw(sprintf(_m("favored %d times"), $tally->count));
+ $out->elementStart('span', array('class' => 'fave-tally-title'));
+ // TRANS: Label for tally for number of times a notice was favored.
+ $out->raw(sprintf(_m("Favored")));
+ $out->elementEnd('span');
+ $out->elementStart('span', array('class' => 'fave-tally'));
+ $out->raw($tally->count);
+ $out->elementEnd('span');
$out->elementEnd('div');
}
}
$id = $profile->insert();
if (!$id) {
- throw new ServerException(_m("Couldn't create anonymous user session."));
+ // TRANS: Server exception.
+ throw new ServerException(_m("Could not create anonymous user session."));
}
// Stick the Profile ID into the nickname
$result = $profile->update($orig);
if (!$result) {
- throw new ServerException(_m("Couldn't create anonymous user session."));
+ // TRANS: Server exception.
+ throw new ServerException(_m("Could not create anonymous user session."));
}
common_log(
'author' => 'Zach Copley',
'homepage' => $url,
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Allow anonymous users to favorite notices.'));
return true;
}
-
}