'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:CacheLog',
'description' =>
+ // TRANS: Plugin description.
_m('Log reads and writes to the cache.'));
return true;
}
function onInitializePlugin(){
parent::onInitializePlugin();
if(!isset($this->server)){
+ // TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
throw new Exception(_m("Specifying a server is required."));
}
if(!isset($this->port)){
+ // TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
throw new Exception(_m("Specifying a port is required."));
}
if(!isset($this->path)){
+ // TRANS: Exception thrown when the CAS Authentication plugin has been configured incorrectly.
throw new Exception(_m("Specifying a path is required."));
}
//These values need to be accessible to a action object
{
parent::handle($args);
if (common_is_real_login()) {
+ // TRANS: Client error displayed when trying to log in while already logged on.
$this->clientError(_m('Already logged in.'));
} else {
global $casSettings;
$casTempPassword = common_good_rand(16);
$user = common_check_user(phpCAS::getUser(), $casTempPassword);
if (!$user) {
+ // TRANS: Server error displayed when trying to log in with incorrect username or password.
$this->serverError(_m('Incorrect username or password.'));
return;
}
// success!
if (!common_set_user($user)) {
+ // TRANS: Server error displayed when login fails in CAS authentication plugin.
$this->serverError(_m('Error setting user. You are probably not authorized.'));
return;
}
'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:ClientSideShorten',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('ClientSideShorten causes the web interface\'s notice form to automatically shorten URLs as they entered, and before the notice is submitted.'));
return true;
}
-ClientSideShorten causes the web interface's notice form to automatically shorten urls as they entered, and before the notice is submitted.
+ClientSideShorten causes the web interface's notice form to automatically
+shorten URLs as they entered, and before the notice is submitted.
Installation
============
function delayed () {
if (!execAsap)
func.apply(obj, args);
- timeout = null;
+ timeout = null;
};
if (timeout)
else if (execAsap)
func.apply(obj, args);
- timeout = setTimeout(delayed, threshold || 100);
+ timeout = setTimeout(delayed, threshold || 100);
};
}
jQuery.fn[sr] = function(fn){ return fn ? this.bind('keypress', debounce(fn, 1000)) : this.trigger(sr); };
$this->users=array();
$this->text = $this->arg('text');
if(is_null($this->text)){
- throw new ClientException(_m('\'text\' argument must be specified.'));
+ // TRANS: Client exception thrown when a text argument is not present.
+ throw new ClientException(_m('"text" argument must be specified.'));
}
return true;
}
<?php
/*
- *
* Phomet: a php comet client
*
* Copyright (C) 2008 Morgan 'ARR!' Allen <morganrallen@gmail.com> http://morglog.alleycatracing.com
// update the local timeline from a Comet server
-//
-
var CometUpdate = function()
{
var _server;
}
}
}();
-
'version' => DIRECTIONDETECTORPLUGIN_VERSION,
'author' => 'Behrooz Shabani',
'homepage' => $url,
+ // TRANS: Plugin description.
'rawdescription' => _m('Shows notices with right-to-left content in correct direction.')
);
return true;
*/
class DirectoryPlugin extends Plugin
{
-
private $dir = null;
/**
$nav->out->menuItem(
common_local_url('userdirectory'),
- _m('Directory'),
- _m('User Directory'),
+ // TRANS: Menu item text for user directory.
+ _m('MENU','Directory'),
+ // TRANS: Menu item title for user directory.
+ _m('User Directory.'),
$actionName == 'userdirectory',
'nav_directory'
);
'version' => STATUSNET_VERSION,
'author' => 'Zach Copley',
'homepage' => 'http://status.net/wiki/Plugin:Directory',
+ // TRANS: Plugin description.
'rawdescription' => _m('Add a user directory.')
);
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class DiskCachePlugin extends Plugin
{
var $root = '/tmp';
*
* @return boolean hook success
*/
-
function onStartCacheGet(&$key, &$value)
{
$filename = $this->keyToFilename($key);
*
* @return boolean hook success
*/
-
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{
$filename = $this->keyToFilename($key);
*
* @return boolean hook success
*/
-
function onStartCacheDelete(&$key, &$success)
{
$filename = $this->keyToFilename($key);
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:DiskCache',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Plugin to implement cache interface with disk files.'));
return true;
}