From 700b46317a34b5cf8e70468f8c48141566fca0f6 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 19 Aug 2011 16:50:31 +0200 Subject: [PATCH] Fix broken translator documentation because "// TRANS: " is not exactly in the line above the _m() method call. Whitespace updates. --- plugins/OMB/OMBPlugin.php | 22 ++++++++-------------- plugins/OMB/README | 1 - 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/plugins/OMB/OMBPlugin.php b/plugins/OMB/OMBPlugin.php index 38494c8134..c532c4c894 100644 --- a/plugins/OMB/OMBPlugin.php +++ b/plugins/OMB/OMBPlugin.php @@ -228,16 +228,14 @@ class OMBPlugin extends Plugin $omb01 = Remote_profile::staticGet('id', $other_id); if (!empty($omb01)) { - // TRANS: Client error displayed trying to subscribe to an OMB 0.1 remote profile. throw new ClientException( - _m( - 'You cannot subscribe to an OMB 0.1 ' + // TRANS: Client error displayed trying to subscribe to an OMB 0.1 remote profile. + _m('You cannot subscribe to an OMB 0.1 ' . 'remote profile with this action.' ) ); return false; } - } /** @@ -257,10 +255,9 @@ class OMBPlugin extends Plugin $omb01 = Remote_profile::staticGet('id', $tagged_profile->id); if (!empty($omb01)) { - // TRANS: Client error displayed when trying to add an OMB 0.1 remote profile to a list. $this->clientError( - _m( - 'You cannot list an OMB 0.1 ' + // TRANS: Client error displayed when trying to add an OMB 0.1 remote profile to a list. + _m('You cannot list an OMB 0.1 ' .'remote profile with this action.') ); } @@ -282,10 +279,9 @@ class OMBPlugin extends Plugin $omb01 = Remote_profile::staticGet('id', $ptag->tagged); if (!empty($omb01)) { - // TRANS: Client error displayed when trying to (un)list an OMB 0.1 remote profile. $this->clientError( - _m( - 'You cannot (un)list an OMB 0.1 ' + // TRANS: Client error displayed when trying to (un)list an OMB 0.1 remote profile. + _m('You cannot (un)list an OMB 0.1 ' . 'remote profile with this action.') ); return false; @@ -317,8 +313,8 @@ class OMBPlugin extends Plugin if (!$result) { common_log_db_error($token, 'DELETE', __FILE__); - // TRANS: Exception thrown when the OMB token for a subscription could not deleted on the server. throw new Exception( + // TRANS: Exception thrown when the OMB token for a subscription could not deleted on the server. _m('Could not delete subscription OMB token.') ); } @@ -394,12 +390,10 @@ class OMBPlugin extends Plugin 'version' => STATUSNET_VERSION, 'author' => 'Zach Copley', 'homepage' => 'http://status.net/wiki/Plugin:Sample', - 'rawdescription' => // TRANS: Plugin description. - _m('A sample plugin to show basics of development for new hackers.') + 'rawdescription' => _m('A sample plugin to show basics of development for new hackers.') ); return true; } } - diff --git a/plugins/OMB/README b/plugins/OMB/README index 839eb4e33a..f296e38ff6 100644 --- a/plugins/OMB/README +++ b/plugins/OMB/README @@ -28,4 +28,3 @@ Note: once you have a sizable number of users, sending OMB messages whenever someone posts a message can really slow down your site; it may cause posting to timeout. You may wish to enable queuing and handle OMB communication offline. See the "queues and daemons" section of the main StatusNet README. - -- 2.39.5