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
*/
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;
}

View File

@ -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;
}

View File

@ -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');
}

View File

@ -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;
}
}

View File

@ -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;
}

View File

@ -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();