Update translator documentation.

i18n/L10n issues fixed.
Superfluous whitespace removed.
This commit is contained in:
Siebrand Mazeland 2011-04-06 02:11:09 +02:00
parent 69778f12c8
commit cca159883a
11 changed files with 33 additions and 28 deletions

View File

@ -40,7 +40,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 AccountManagementControlDocumentAction extends Action class AccountManagementControlDocumentAction extends Action
{ {
/** /**
@ -50,7 +49,6 @@ class AccountManagementControlDocumentAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle($args)
{ {
parent::handle($args); parent::handle($args);

View File

@ -40,7 +40,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 AccountManagementSessionStatusAction extends Action class AccountManagementSessionStatusAction extends Action
{ {
/** /**
@ -50,7 +49,6 @@ class AccountManagementSessionStatusAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle($args)
{ {
parent::handle($args); parent::handle($args);

View File

@ -33,7 +33,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
class AccountManagerPlugin extends Plugin class AccountManagerPlugin extends Plugin
{ {
const AM_REL = 'acct-mgmt'; const AM_REL = 'acct-mgmt';
function __construct() function __construct()
@ -99,7 +98,6 @@ class AccountManagerPlugin extends Plugin
default: default:
return true; return true;
} }
} }
function onPluginVersion(&$versions) function onPluginVersion(&$versions)

View File

@ -193,7 +193,7 @@ class AdsensePlugin extends UAPPlugin
// TRANS: Menu item title/tooltip // TRANS: Menu item title/tooltip
$menu_title = _m('AdSense configuration'); $menu_title = _m('AdSense configuration');
// TRANS: Menu item for site administration // TRANS: Menu item for site administration
$menu->out->menuItem(common_local_url('adsenseadminpanel'), _m('AdSense'), $menu->out->menuItem(common_local_url('adsenseadminpanel'), _m('MENU','AdSense'),
$menu_title, $action_name == 'adsenseadminpanel', 'nav_adsense_admin_panel'); $menu_title, $action_name == 'adsenseadminpanel', 'nav_adsense_admin_panel');
} }
return true; return true;
@ -206,6 +206,7 @@ class AdsensePlugin extends UAPPlugin
'author' => 'Evan Prodromou', 'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:Adsense', 'homepage' => 'http://status.net/wiki/Plugin:Adsense',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('Plugin to add Google AdSense to StatusNet sites.')); _m('Plugin to add Google AdSense to StatusNet sites.'));
return true; return true;
} }

View File

@ -161,38 +161,50 @@ class AdsenseAdminPanelForm extends AdminForm
$this->out->elementStart('ul', 'form_data'); $this->out->elementStart('ul', 'form_data');
$this->li(); $this->li();
$this->input('client', $this->input('client',
// TRANS: Field label in AdSense administration panel.
_m('Client ID'), _m('Client ID'),
_m('Google client ID'), // TRANS: Field title in AdSense administration panel.
_m('Google client ID.'),
'adsense'); 'adsense');
$this->unli(); $this->unli();
$this->li(); $this->li();
$this->input('adScript', $this->input('adScript',
// TRANS: Field label in AdSense administration panel.
_m('Ad script URL'), _m('Ad script URL'),
_m('Script URL (advanced)'), // TRANS: Field title in AdSense administration panel.
_m('Script URL (advanced).'),
'adsense'); 'adsense');
$this->unli(); $this->unli();
$this->li(); $this->li();
$this->input('mediumRectangle', $this->input('mediumRectangle',
// TRANS: Field label in AdSense administration panel.
_m('Medium rectangle'), _m('Medium rectangle'),
_m('Medium rectangle slot code'), // TRANS: Field title in AdSense administration panel.
_m('Medium rectangle slot code.'),
'adsense'); 'adsense');
$this->unli(); $this->unli();
$this->li(); $this->li();
$this->input('rectangle', $this->input('rectangle',
// TRANS: Field label in AdSense administration panel.
_m('Rectangle'), _m('Rectangle'),
_m('Rectangle slot code'), // TRANS: Field title in AdSense administration panel.
_m('Rectangle slot code.'),
'adsense'); 'adsense');
$this->unli(); $this->unli();
$this->li(); $this->li();
$this->input('leaderboard', $this->input('leaderboard',
// TRANS: Field label in AdSense administration panel.
_m('Leaderboard'), _m('Leaderboard'),
_m('Leaderboard slot code'), // TRANS: Field title in AdSense administration panel.
_m('Leaderboard slot code.'),
'adsense'); 'adsense');
$this->unli(); $this->unli();
$this->li(); $this->li();
$this->input('wideSkyscraper', $this->input('wideSkyscraper',
// TRANS: Field label in AdSense administration panel.
_m('Skyscraper'), _m('Skyscraper'),
_m('Wide skyscraper slot code'), // TRANS: Field title in AdSense administration panel.
_m('Wide skyscraper slot code.'),
'adsense'); 'adsense');
$this->unli(); $this->unli();
$this->out->elementEnd('ul'); $this->out->elementEnd('ul');
@ -205,6 +217,9 @@ class AdsenseAdminPanelForm extends AdminForm
*/ */
function formActions() function formActions()
{ {
$this->out->submit('submit', _m('Save'), 'submit', null, _m('Save AdSense settings')); // TRANS: Button text to save settings in AdSense administration panel.
$this->out->submit('submit', _m('BUTTON','Save'),
// TRANS: Button title to save settings in AdSense administration panel.
'submit', null, _m('Save AdSense settings.'));
} }
} }

View File

@ -46,7 +46,6 @@ set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/ext
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class AimPlugin extends ImPlugin class AimPlugin extends ImPlugin
{ {
public $user = null; public $user = null;
@ -57,6 +56,7 @@ class AimPlugin extends ImPlugin
function getDisplayName() function getDisplayName()
{ {
// TRANS: Display name.
return _m('AIM'); return _m('AIM');
} }
@ -145,10 +145,12 @@ class AimPlugin extends ImPlugin
function initialize(){ function initialize(){
if(!isset($this->user)){ if(!isset($this->user)){
throw new Exception("must specify a user"); // TRANS: Exception thrown in AIM plugin when user has not been specified.
throw new Exception(_m('Must specify a user.'));
} }
if(!isset($this->password)){ if(!isset($this->password)){
throw new Exception("must specify a password"); // TRANS: Exception thrown in AIM plugin when password has not been specified.
throw new Exception(_m('Must specify a password.'));
} }
$this->fake_aim = new Fake_Aim($this->user,$this->password,4); $this->fake_aim = new Fake_Aim($this->user,$this->password,4);
@ -162,8 +164,8 @@ class AimPlugin extends ImPlugin
'author' => 'Craig Andrews', 'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:AIM', 'homepage' => 'http://status.net/wiki/Plugin:AIM',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('The AIM plugin allows users to send and receive notices over the AIM network.')); _m('The AIM plugin allows users to send and receive notices over the AIM network.'));
return true; return true;
} }
} }

View File

@ -40,4 +40,3 @@ class Fake_Aim extends Aim
$this->would_be_sent = array($sflap_type, $sflap_data, $no_null, $formatted); $this->would_be_sent = array($sflap_type, $sflap_data, $no_null, $formatted);
} }
} }

View File

@ -29,10 +29,8 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
* In a multi-site queuedaemon.php run, one connection will be instantiated * In a multi-site queuedaemon.php run, one connection will be instantiated
* for each site being handled by the current process that has XMPP enabled. * for each site being handled by the current process that has XMPP enabled.
*/ */
class AimManager extends ImManager class AimManager extends ImManager
{ {
public $conn = null; public $conn = null;
/** /**
* Initialize connection to server. * Initialize connection to server.
@ -77,6 +75,8 @@ class AimManager extends ImManager
$this->conn->registerHandler("IMIn",array($this,"handle_aim_message")); $this->conn->registerHandler("IMIn",array($this,"handle_aim_message"));
$this->conn->myServer="toc.oscar.aol.com"; $this->conn->myServer="toc.oscar.aol.com";
$this->conn->signon(); $this->conn->signon();
// @todo i18n FIXME: Update translator documentation, please.
// TRANS: No idea what the use case for this message is.
$this->conn->setProfile(_m('Send me a message to post a notice'),false); $this->conn->setProfile(_m('Send me a message to post a notice'),false);
} }
return $this->conn; return $this->conn;

View File

@ -56,10 +56,8 @@ define('ANONYMOUS_FAVE_PLUGIN_VERSION', '0.1');
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class AnonymousFavePlugin extends Plugin class AnonymousFavePlugin extends Plugin
{ {
// Array of users who should not have anon faving. The default is // Array of users who should not have anon faving. The default is
// that anonymous faving is allowed for all users. // that anonymous faving is allowed for all users.
public $restricted = array(); public $restricted = array();
@ -327,5 +325,4 @@ class AnonymousFavePlugin extends Plugin
return true; return true;
} }
} }

View File

@ -46,7 +46,6 @@ require_once INSTALLDIR.'/lib/form.php';
*/ */
class AnonFavorForm extends FavorForm class AnonFavorForm extends FavorForm
{ {
/** /**
* Constructor * Constructor
* *
@ -67,5 +66,4 @@ class AnonFavorForm extends FavorForm
{ {
return common_local_url('AnonFavor'); return common_local_url('AnonFavor');
} }
} }

View File

@ -35,4 +35,3 @@ $notice->find();
while ($notice->fetch()) { while ($notice->fetch()) {
Fave_tally::ensureTally($notice->id); Fave_tally::ensureTally($notice->id);
} }