Update translator documentation.

i18n/L10n updates.
Whitespace updates.
This commit is contained in:
Siebrand Mazeland 2011-06-17 16:19:18 +02:00
parent 0b81532cbc
commit acb215d550
6 changed files with 12 additions and 8 deletions

View File

@ -38,7 +38,8 @@ class TightUrlPlugin extends UrlShortenerPlugin
function onInitializePlugin(){ function onInitializePlugin(){
parent::onInitializePlugin(); parent::onInitializePlugin();
if(!isset($this->serviceUrl)){ if(!isset($this->serviceUrl)){
throw new Exception("must specify a serviceUrl"); // TRANS: Exception thrown when the TightUrl plugin has been configured incorrectly.
throw new Exception(_m('You must specify a serviceUrl.'));
} }
} }
@ -63,6 +64,7 @@ class TightUrlPlugin extends UrlShortenerPlugin
'author' => 'Craig Andrews', 'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:TightUrl', 'homepage' => 'http://status.net/wiki/Plugin:TightUrl',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description. %s is the shortener name.
sprintf(_m('Uses <a href="http://%1$s/">%1$s</a> URL-shortener service.'), sprintf(_m('Uses <a href="http://%1$s/">%1$s</a> URL-shortener service.'),
$this->shortenerName)); $this->shortenerName));
return true; return true;

View File

@ -1,5 +1,4 @@
<?php <?php
/** /**
* StatusNet - the distributed open-source microblogging tool * StatusNet - the distributed open-source microblogging tool
* Copyright (C) 2010, StatusNet, Inc. * Copyright (C) 2010, StatusNet, Inc.
@ -38,7 +37,7 @@ if (!defined('STATUSNET')) {
* Use TinyMCE library to allow rich text editing in the browser * Use TinyMCE library to allow rich text editing in the browser
* *
* Converts the notice form in browser to a rich-text editor. * Converts the notice form in browser to a rich-text editor.
* *
* FIXME: this plugin DOES NOT load its static files from the configured * FIXME: this plugin DOES NOT load its static files from the configured
* plugin server if one exists. There are cross-server permissions errors * plugin server if one exists. There are cross-server permissions errors
* if you try to do that (something about window.tinymce). * if you try to do that (something about window.tinymce).
@ -84,6 +83,7 @@ class TinyMCEPlugin extends Plugin
'author' => 'Evan Prodromou', 'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:TinyMCE', 'homepage' => 'http://status.net/wiki/Plugin:TinyMCE',
'rawdescription' => 'rawdescription' =>
// TRANS: Plugin description.
_m('Use TinyMCE library to allow rich text editing in the browser.')); _m('Use TinyMCE library to allow rich text editing in the browser.'));
return true; return true;
} }

View File

@ -157,7 +157,8 @@ class User_flag_profile extends Memcached_DataObject
if (!$ufp->insert()) { if (!$ufp->insert()) {
// TRANS: Server exception. // TRANS: Server exception.
$msg = sprintf(_m('Couldn\'t flag profile "%d" for review.'), // TRANS: %d is a profile ID (number).
$msg = sprintf(_m('Could not flag profile "%d" for review.'),
$profile_id); $profile_id);
throw new ServerException($msg); throw new ServerException($msg);
} }

View File

@ -86,6 +86,7 @@ class AdminprofileflagAction extends Action
// User must have the right to review flags // User must have the right to review flags
if (!$user->hasRight(UserFlagPlugin::REVIEWFLAGS)) { if (!$user->hasRight(UserFlagPlugin::REVIEWFLAGS)) {
// TRANS: Error message displayed when trying to review profile flags while not authorised.
$this->clientError(_m('You cannot review profile flags.')); $this->clientError(_m('You cannot review profile flags.'));
return false; return false;
} }
@ -385,7 +386,7 @@ class FlaggedProfileListItem extends ProfileListItem
$flagging_users = implode(', ', $lnks); $flagging_users = implode(', ', $lnks);
// TRANS: Message displayed on a profile if it has been flagged. // TRANS: Message displayed on a profile if it has been flagged.
// TRANS: %1$s is a comma separated list of at most 5 user nicknames that flagged. // TRANS: %1$s is a comma separated list of at most 5 user nicknames that flagged.
// TRANS: %2$d is a positive integer of additional flagging users. Also used for the plural. // TRANS: %2$d is a positive integer of additional flagging users. Also used for plural.
$text .= sprintf(_m('Flagged by %1$s and %2$d other', 'Flagged by %1$s and %2$d others', $others), $flagging_users, $others); $text .= sprintf(_m('Flagged by %1$s and %2$d other', 'Flagged by %1$s and %2$d others', $others), $flagging_users, $others);
} else { } else {
// TRANS: Message displayed on a profile if it has been flagged. // TRANS: Message displayed on a profile if it has been flagged.

View File

@ -49,7 +49,6 @@ class ClearflagAction extends ProfileFormAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare($args)
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
@ -102,7 +101,8 @@ class ClearflagAction extends ProfileFormAction
if ($result == false) { if ($result == false) {
// TRANS: Server exception given when flags could not be cleared. // TRANS: Server exception given when flags could not be cleared.
$msg = sprintf(_m('Couldn\'t clear flags for profile "%s".'), // TRANS: %s is a profile nickname.
$msg = sprintf(_m('Could not clear flags for profile "%s".'),
$this->profile->nickname); $this->profile->nickname);
throw new ServerException($msg); throw new ServerException($msg);
} }

View File

@ -84,7 +84,7 @@ class ClearFlagForm extends ProfileActionForm
function description() function description()
{ {
// Form description for clearing flags from a profile. // TRANS: Form description for clearing flags from a profile.
return _m('Clear all flags'); return _m('Clear all flags');
} }
} }