Update translator documentation.

i18n/L10n fixes.
Superfluous whitespace removed.
onPluginVersion() added where missing.
This commit is contained in:
Siebrand Mazeland 2011-04-06 14:57:48 +02:00
parent cca159883a
commit 5f591e05ae
6 changed files with 19 additions and 4 deletions

View File

@ -60,7 +60,6 @@ class APCPlugin extends Plugin
* *
* @return boolean hook success * @return boolean hook success
*/ */
function onStartCacheGet(&$key, &$value) function onStartCacheGet(&$key, &$value)
{ {
$value = apc_fetch($key); $value = apc_fetch($key);
@ -79,7 +78,6 @@ class APCPlugin extends Plugin
* *
* @return boolean hook success * @return boolean hook success
*/ */
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success) function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{ {
$success = apc_store($key, $value, ((is_null($expiry)) ? 0 : $expiry)); $success = apc_store($key, $value, ((is_null($expiry)) ? 0 : $expiry));
@ -97,7 +95,6 @@ class APCPlugin extends Plugin
* *
* @return boolean hook success * @return boolean hook success
*/ */
function onStartCacheDelete(&$key, &$success) function onStartCacheDelete(&$key, &$success)
{ {
$success = apc_delete($key); $success = apc_delete($key);
@ -112,6 +109,7 @@ class APCPlugin extends Plugin
'author' => 'Evan Prodromou', 'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:APC', 'homepage' => 'http://status.net/wiki/Plugin:APC',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('Use the <a href="http://pecl.php.net/package/apc">APC</a> variable cache to cache query results.')); _m('Use the <a href="http://pecl.php.net/package/apc">APC</a> variable cache to cache query results.'));
return true; return true;
} }

View File

@ -107,6 +107,7 @@ class AccountManagerPlugin extends Plugin
'author' => 'Craig Andrews', 'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:AccountManager', 'homepage' => 'http://status.net/wiki/Plugin:AccountManager',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('The Account Manager plugin implements the Account Manager specification.')); _m('The Account Manager plugin implements the Account Manager specification.'));
return true; return true;
} }

View File

@ -49,6 +49,7 @@ class AdsenseadminpanelAction extends AdminPanelAction
*/ */
function title() function title()
{ {
// TRANS: Title of AdSense administrator panel.
return _m('TITLE', 'AdSense'); return _m('TITLE', 'AdSense');
} }
@ -59,6 +60,7 @@ class AdsenseadminpanelAction extends AdminPanelAction
*/ */
function getInstructions() function getInstructions()
{ {
// TRANS: Instructions for AdSense administrator panel.
return _m('AdSense settings for this StatusNet site'); return _m('AdSense settings for this StatusNet site');
} }

View File

@ -74,4 +74,16 @@ class ApiLoggerPlugin extends Plugin
} }
return true; 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;
}
} }

View File

@ -79,6 +79,7 @@ class AutocompletePlugin extends Plugin
'author' => 'Craig Andrews', 'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:Autocomplete', 'homepage' => 'http://status.net/wiki/Plugin:Autocomplete',
'rawdescription' => '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.')); _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; return true;
} }

View File

@ -94,7 +94,8 @@ class AutocompleteAction extends Action
$cur = common_current_user(); $cur = common_current_user();
if (!$cur) { 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->groups=array();
$this->users=array(); $this->users=array();