diff --git a/plugins/PiwikAnalytics/PiwikAnalyticsPlugin.php b/plugins/PiwikAnalytics/PiwikAnalyticsPlugin.php index 8a730113e6..2c85586715 100644 --- a/plugins/PiwikAnalytics/PiwikAnalyticsPlugin.php +++ b/plugins/PiwikAnalytics/PiwikAnalyticsPlugin.php @@ -110,6 +110,7 @@ ENDOFPIWIK; 'author' => 'Tobias Diekershoff, Evan Prodromou', 'homepage' => 'http://status.net/wiki/Plugin:Piwik', 'rawdescription' => + // TRANS: Plugin description. _m('Use Piwik Open Source web analytics software.')); return true; } diff --git a/plugins/Poll/Poll.php b/plugins/Poll/Poll.php index f5fa9bade5..0c274341b2 100644 --- a/plugins/Poll/Poll.php +++ b/plugins/Poll/Poll.php @@ -242,7 +242,7 @@ class Poll extends Managed_DataObject $p->uri); $link = '' . htmlspecialchars($question) . ''; // TRANS: Rendered version of the notice content creating a poll. - // TRANS: %s a link to the poll with the question as link description. + // TRANS: %s is a link to the poll with the question as link description. $rendered = sprintf(_m('Poll: %s'), $link); $tags = array('poll'); diff --git a/plugins/Poll/PollPlugin.php b/plugins/Poll/PollPlugin.php index 5a7d5c22fd..1246f6c2f8 100644 --- a/plugins/Poll/PollPlugin.php +++ b/plugins/Poll/PollPlugin.php @@ -227,12 +227,12 @@ class PollPlugin extends MicroAppPlugin if (!$pollUri) { // TRANS: Exception thrown trying to respond to a poll without a poll reference. - throw new Exception(_m('Invalid poll response: no poll reference.')); + throw new Exception(_m('Invalid poll response: No poll reference.')); } $poll = Poll::staticGet('uri', $pollUri); if (!$poll) { // TRANS: Exception thrown trying to respond to a non-existing poll. - throw new Exception(_m('Invalid poll response: poll is unknown.')); + throw new Exception(_m('Invalid poll response: Poll is unknown.')); } try { $notice = Poll_response::saveNew($profile, $poll, $selection, $options); @@ -258,7 +258,7 @@ class PollPlugin extends MicroAppPlugin return $this->activityObjectFromNoticePollResponse($notice); default: // TRANS: Exception thrown when performing an unexpected action on a poll. - // TRANS: %s is the unpexpected object type. + // TRANS: %s is the unexpected object type. throw new Exception(sprintf(_m('Unexpected type for poll plugin: %s.'), $notice->object_type)); } } @@ -416,7 +416,7 @@ class PollPlugin extends MicroAppPlugin return $this->showNoticePollResponse($notice, $out); default: // TRANS: Exception thrown when performing an unexpected action on a poll. - // TRANS: %s is the unpexpected object type. + // TRANS: %s is the unexpected object type. throw new Exception(sprintf(_m('Unexpected type for poll plugin: %s.'), $notice->object_type)); } } @@ -444,6 +444,7 @@ class PollPlugin extends MicroAppPlugin $form->show(); } } else { + // TRANS: Error text displayed if no poll data could be found. $out->text(_m('Poll data is missing')); } $out->elementEnd('div'); diff --git a/plugins/Poll/respondpoll.php b/plugins/Poll/respondpoll.php index 74629c3604..27b9b193fe 100644 --- a/plugins/Poll/respondpoll.php +++ b/plugins/Poll/respondpoll.php @@ -81,7 +81,7 @@ class RespondPollAction extends Action if (empty($this->user)) { // TRANS: Client exception thrown trying to respond to a poll while not logged in. - throw new ClientException(_m("You must be logged in to respond to a poll."), + throw new ClientException(_m('You must be logged in to respond to a poll.'), 403); } diff --git a/plugins/PostDebug/PostDebugPlugin.php b/plugins/PostDebug/PostDebugPlugin.php index 48fe28eabd..558db71534 100644 --- a/plugins/PostDebug/PostDebugPlugin.php +++ b/plugins/PostDebug/PostDebugPlugin.php @@ -55,6 +55,7 @@ class PostDebugPlugin extends Plugin 'author' => 'Brion Vibber', 'homepage' => 'http://status.net/wiki/Plugin:PostDebug', 'rawdescription' => + // TRANS: Plugin description. _m('Debugging tool to record request details on POST.')); return true; } @@ -145,6 +146,4 @@ class PostDebugPlugin extends Plugin } return $data; } - } -