Translator documentation added.

Whitespace updates.
This commit is contained in:
Siebrand Mazeland 2011-04-06 23:43:30 +02:00
parent caa6690f4c
commit 512bd91dee
2 changed files with 6 additions and 7 deletions

View File

@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
*/ */
class DirectoryPlugin extends Plugin class DirectoryPlugin extends Plugin
{ {
private $dir = null; private $dir = null;
/** /**
@ -165,8 +164,10 @@ class DirectoryPlugin extends Plugin
$nav->out->menuItem( $nav->out->menuItem(
common_local_url('userdirectory'), common_local_url('userdirectory'),
_m('Directory'), // TRANS: Menu item text for user directory.
_m('User Directory'), _m('MENU','Directory'),
// TRANS: Menu item title for user directory.
_m('User Directory.'),
$actionName == 'userdirectory', $actionName == 'userdirectory',
'nav_directory' 'nav_directory'
); );
@ -184,6 +185,7 @@ class DirectoryPlugin extends Plugin
'version' => STATUSNET_VERSION, 'version' => STATUSNET_VERSION,
'author' => 'Zach Copley', 'author' => 'Zach Copley',
'homepage' => 'http://status.net/wiki/Plugin:Directory', 'homepage' => 'http://status.net/wiki/Plugin:Directory',
// TRANS: Plugin description.
'rawdescription' => _m('Add a user directory.') 'rawdescription' => _m('Add a user directory.')
); );

View File

@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class DiskCachePlugin extends Plugin class DiskCachePlugin extends Plugin
{ {
var $root = '/tmp'; var $root = '/tmp';
@ -64,7 +63,6 @@ class DiskCachePlugin extends Plugin
* *
* @return boolean hook success * @return boolean hook success
*/ */
function onStartCacheGet(&$key, &$value) function onStartCacheGet(&$key, &$value)
{ {
$filename = $this->keyToFilename($key); $filename = $this->keyToFilename($key);
@ -91,7 +89,6 @@ class DiskCachePlugin extends Plugin
* *
* @return boolean hook success * @return boolean hook success
*/ */
function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success) function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
{ {
$filename = $this->keyToFilename($key); $filename = $this->keyToFilename($key);
@ -152,7 +149,6 @@ class DiskCachePlugin extends Plugin
* *
* @return boolean hook success * @return boolean hook success
*/ */
function onStartCacheDelete(&$key, &$success) function onStartCacheDelete(&$key, &$success)
{ {
$filename = $this->keyToFilename($key); $filename = $this->keyToFilename($key);
@ -172,6 +168,7 @@ class DiskCachePlugin extends Plugin
'author' => 'Evan Prodromou', 'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:DiskCache', 'homepage' => 'http://status.net/wiki/Plugin:DiskCache',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('Plugin to implement cache interface with disk files.')); _m('Plugin to implement cache interface with disk files.'));
return true; return true;
} }