From: Siebrand Mazeland Date: Wed, 6 Apr 2011 12:57:48 +0000 (+0200) Subject: Update translator documentation. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f591e05ae6238fed4a9577bdbc2949480d17db4;p=quix0rs-gnu-social.git Update translator documentation. i18n/L10n fixes. Superfluous whitespace removed. onPluginVersion() added where missing. --- diff --git a/plugins/APC/APCPlugin.php b/plugins/APC/APCPlugin.php index 0069779004..851a4b4abc 100644 --- a/plugins/APC/APCPlugin.php +++ b/plugins/APC/APCPlugin.php @@ -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 APC variable cache to cache query results.')); return true; } diff --git a/plugins/AccountManager/AccountManagerPlugin.php b/plugins/AccountManager/AccountManagerPlugin.php index 9563252c73..3b399af8c8 100644 --- a/plugins/AccountManager/AccountManagerPlugin.php +++ b/plugins/AccountManager/AccountManagerPlugin.php @@ -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; } diff --git a/plugins/Adsense/adsenseadminpanel.php b/plugins/Adsense/adsenseadminpanel.php index 224c82b2fc..8a5c0cf07e 100644 --- a/plugins/Adsense/adsenseadminpanel.php +++ b/plugins/Adsense/adsenseadminpanel.php @@ -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'); } diff --git a/plugins/ApiLogger/ApiLoggerPlugin.php b/plugins/ApiLogger/ApiLoggerPlugin.php index deb54008e5..a35fce7c55 100644 --- a/plugins/ApiLogger/ApiLoggerPlugin.php +++ b/plugins/ApiLogger/ApiLoggerPlugin.php @@ -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; + } } diff --git a/plugins/Autocomplete/AutocompletePlugin.php b/plugins/Autocomplete/AutocompletePlugin.php index 1479ead602..9a015dd704 100644 --- a/plugins/Autocomplete/AutocompletePlugin.php +++ b/plugins/Autocomplete/AutocompletePlugin.php @@ -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; } diff --git a/plugins/Autocomplete/autocomplete.php b/plugins/Autocomplete/autocomplete.php index e15e95ec19..0bb1b783db 100644 --- a/plugins/Autocomplete/autocomplete.php +++ b/plugins/Autocomplete/autocomplete.php @@ -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();