From acb215d55033ff03736342b311ff6deb8f28ead0 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 17 Jun 2011 16:19:18 +0200 Subject: [PATCH] Update translator documentation. i18n/L10n updates. Whitespace updates. --- plugins/TightUrl/TightUrlPlugin.php | 4 +++- plugins/TinyMCE/TinyMCEPlugin.php | 4 ++-- plugins/UserFlag/User_flag_profile.php | 3 ++- plugins/UserFlag/adminprofileflag.php | 3 ++- plugins/UserFlag/clearflag.php | 4 ++-- plugins/UserFlag/clearflagform.php | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/plugins/TightUrl/TightUrlPlugin.php b/plugins/TightUrl/TightUrlPlugin.php index 8fd645945b..6d96f40bc5 100644 --- a/plugins/TightUrl/TightUrlPlugin.php +++ b/plugins/TightUrl/TightUrlPlugin.php @@ -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 %1$s URL-shortener service.'), $this->shortenerName)); return true; diff --git a/plugins/TinyMCE/TinyMCEPlugin.php b/plugins/TinyMCE/TinyMCEPlugin.php index 4051ff59ee..a5e4a481b8 100644 --- a/plugins/TinyMCE/TinyMCEPlugin.php +++ b/plugins/TinyMCE/TinyMCEPlugin.php @@ -1,5 +1,4 @@ '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; } diff --git a/plugins/UserFlag/User_flag_profile.php b/plugins/UserFlag/User_flag_profile.php index f4e9844dfc..cdc67cf8e7 100644 --- a/plugins/UserFlag/User_flag_profile.php +++ b/plugins/UserFlag/User_flag_profile.php @@ -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); } diff --git a/plugins/UserFlag/adminprofileflag.php b/plugins/UserFlag/adminprofileflag.php index 1aafa3c1bf..d9e57cfc4b 100644 --- a/plugins/UserFlag/adminprofileflag.php +++ b/plugins/UserFlag/adminprofileflag.php @@ -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. diff --git a/plugins/UserFlag/clearflag.php b/plugins/UserFlag/clearflag.php index feda29f1b7..e5704d6af5 100644 --- a/plugins/UserFlag/clearflag.php +++ b/plugins/UserFlag/clearflag.php @@ -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); } diff --git a/plugins/UserFlag/clearflagform.php b/plugins/UserFlag/clearflagform.php index 26a8848758..47dd3924c3 100644 --- a/plugins/UserFlag/clearflagform.php +++ b/plugins/UserFlag/clearflagform.php @@ -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'); } } -- 2.39.2