i18n/L10n updates.
Whitespace updates.
function onInitializePlugin(){
parent::onInitializePlugin();
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.'));
}
}
'author' => 'Craig Andrews',
'homepage' => 'http://status.net/wiki/Plugin:TightUrl',
'rawdescription' =>
+ // TRANS: Plugin description. %s is the shortener name.
sprintf(_m('Uses <a href="http://%1$s/">%1$s</a> URL-shortener service.'),
$this->shortenerName));
return true;
<?php
-
/**
* StatusNet - the distributed open-source microblogging tool
* Copyright (C) 2010, StatusNet, Inc.
* Use TinyMCE library to allow rich text editing in the browser
*
* Converts the notice form in browser to a rich-text editor.
- *
+ *
* FIXME: this plugin DOES NOT load its static files from the configured
* plugin server if one exists. There are cross-server permissions errors
* if you try to do that (something about window.tinymce).
'author' => 'Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:TinyMCE',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Use TinyMCE library to allow rich text editing in the browser.'));
return true;
}
if (!$ufp->insert()) {
// 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);
throw new ServerException($msg);
}
// User must have the right to review flags
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.'));
return false;
}
$flagging_users = implode(', ', $lnks);
// 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: %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);
} else {
// TRANS: Message displayed on a profile if it has been flagged.
*
* @return boolean success flag
*/
-
function prepare($args)
{
if (!parent::prepare($args)) {
if ($result == false) {
// 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);
throw new ServerException($msg);
}
function description()
{
- // Form description for clearing flags from a profile.
+ // TRANS: Form description for clearing flags from a profile.
return _m('Clear all flags');
}
}