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(){
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.'));
}
}
@ -63,6 +64,7 @@ class TightUrlPlugin extends UrlShortenerPlugin
'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;

View File

@ -1,5 +1,4 @@
<?php
/**
* StatusNet - the distributed open-source microblogging tool
* Copyright (C) 2010, StatusNet, Inc.
@ -38,7 +37,7 @@ if (!defined('STATUSNET')) {
* 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).
@ -84,6 +83,7 @@ class TinyMCEPlugin extends Plugin
'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;
}

View File

@ -157,7 +157,8 @@ class User_flag_profile extends Memcached_DataObject
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);
}

View File

@ -86,6 +86,7 @@ class AdminprofileflagAction extends Action
// 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;
}
@ -385,7 +386,7 @@ class FlaggedProfileListItem extends ProfileListItem
$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.

View File

@ -49,7 +49,6 @@ class ClearflagAction extends ProfileFormAction
*
* @return boolean success flag
*/
function prepare($args)
{
if (!parent::prepare($args)) {
@ -102,7 +101,8 @@ class ClearflagAction extends ProfileFormAction
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);
}

View File

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