i18n/L10n fixes.
Superfluous whitespace removed.
onPluginVersion() added where missing.
*
* @return boolean hook success
*/
-
function onStartCacheGet(&$key, &$value)
{
$value = apc_fetch($key);
*
* @return boolean hook success
*/
-
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{
$success = apc_store($key, $value, ((is_null($expiry)) ? 0 : $expiry));
*
* @return boolean hook success
*/
-
function onStartCacheDelete(&$key, &$success)
{
$success = apc_delete($key);
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:APC',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Use the <a href="http://pecl.php.net/package/apc">APC</a> variable cache to cache query results.'));
return true;
}
'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:AccountManager',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('The Account Manager plugin implements the Account Manager specification.'));
return true;
}
*/
function title()
{
+ // TRANS: Title of AdSense administrator panel.
return _m('TITLE', 'AdSense');
}
*/
function getInstructions()
{
+ // TRANS: Instructions for AdSense administrator panel.
return _m('AdSense settings for this StatusNet site');
}
}
return true;
}
+
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'ApiLogger',
+ 'version' => STATUSNET_VERSION,
+ 'author' => 'Brion Vibber',
+ 'homepage' => 'http://status.net/wiki/Plugin:ApiLogger',
+ 'rawdescription' =>
+ // TRANS: Plugin description.
+ _m('Logging of API requests.'));
+ return true;
+ }
}
'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:Autocomplete',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('The autocomplete plugin allows users to autocomplete screen names in @ replies. When an "@" is typed into the notice text area, an autocomplete box is displayed populated with the user\'s friend\' screen names.'));
return true;
}
$cur = common_current_user();
if (!$cur) {
- throw new ClientException('Access forbidden', true);
+ // TRANS: Client exception in autocomplete plugin.
+ throw new ClientException(_m('Access forbidden.'), true);
}
$this->groups=array();
$this->users=array();