forked from GNUsocial/gnu-social
Update translator documentation.
i18n/L10n fixes. Superfluous whitespace removed. onPluginVersion() added where missing.
This commit is contained in:
parent
cca159883a
commit
5f591e05ae
@ -60,7 +60,6 @@ class APCPlugin extends Plugin
|
||||
*
|
||||
* @return boolean hook success
|
||||
*/
|
||||
|
||||
function onStartCacheGet(&$key, &$value)
|
||||
{
|
||||
$value = apc_fetch($key);
|
||||
@ -79,7 +78,6 @@ class APCPlugin extends Plugin
|
||||
*
|
||||
* @return boolean hook success
|
||||
*/
|
||||
|
||||
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
|
||||
{
|
||||
$success = apc_store($key, $value, ((is_null($expiry)) ? 0 : $expiry));
|
||||
@ -97,7 +95,6 @@ class APCPlugin extends Plugin
|
||||
*
|
||||
* @return boolean hook success
|
||||
*/
|
||||
|
||||
function onStartCacheDelete(&$key, &$success)
|
||||
{
|
||||
$success = apc_delete($key);
|
||||
@ -112,6 +109,7 @@ class APCPlugin extends Plugin
|
||||
'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;
|
||||
}
|
||||
|
@ -107,6 +107,7 @@ class AccountManagerPlugin extends Plugin
|
||||
'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;
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ class AdsenseadminpanelAction extends AdminPanelAction
|
||||
*/
|
||||
function title()
|
||||
{
|
||||
// TRANS: Title of AdSense administrator panel.
|
||||
return _m('TITLE', 'AdSense');
|
||||
}
|
||||
|
||||
@ -59,6 +60,7 @@ class AdsenseadminpanelAction extends AdminPanelAction
|
||||
*/
|
||||
function getInstructions()
|
||||
{
|
||||
// TRANS: Instructions for AdSense administrator panel.
|
||||
return _m('AdSense settings for this StatusNet site');
|
||||
}
|
||||
|
||||
|
@ -74,4 +74,16 @@ class ApiLoggerPlugin extends Plugin
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -79,6 +79,7 @@ class AutocompletePlugin extends Plugin
|
||||
'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;
|
||||
}
|
||||
|
@ -94,7 +94,8 @@ class AutocompleteAction extends Action
|
||||
|
||||
$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();
|
||||
|
Loading…
Reference in New Issue
Block a user