X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FAutoSandbox%2FAutoSandboxPlugin.php;h=ebdc6132431c3362d807dabbe982d7c798f8297c;hb=6d5b6d98b5f68d784fee736518eaaae7a26a51f6;hp=ffd8bf455e29c0e51d179d816d5ee4c8d598ace1;hpb=d57e1deaec7406c63f70b8a5664746d18c1125ff;p=quix0rs-gnu-social.git diff --git a/plugins/AutoSandbox/AutoSandboxPlugin.php b/plugins/AutoSandbox/AutoSandboxPlugin.php index ffd8bf455e..ebdc613243 100644 --- a/plugins/AutoSandbox/AutoSandboxPlugin.php +++ b/plugins/AutoSandbox/AutoSandboxPlugin.php @@ -41,7 +41,7 @@ class AutoSandboxPlugin extends Plugin var $contact; var $debug; - function onInitializePlugin() + function onInitializePlugin() { if(!isset($this->debug)) { @@ -53,7 +53,7 @@ class AutoSandboxPlugin extends Plugin if (!empty($default)) { $this->contact = $default; } - } + } } function onPluginVersion(&$versions) @@ -63,22 +63,26 @@ class AutoSandboxPlugin extends Plugin 'author' => 'Sean Carmody', 'homepage' => 'http://status.net/wiki/Plugin:AutoSandbox', 'rawdescription' => + // TRANS: Plugin description. _m('Automatically sandboxes newly registered members.')); return true; } function onStartRegistrationFormData($action) { - - $instr = 'Note you will initially be "sandboxed" so your posts will not appear in the public timeline.'; + // TRANS: User instructions after registration. + $instr = _m('Note you will initially be "sandboxed" so your posts will not appear in the public timeline.'); if (isset($this->contact)) { $contactuser = User::staticGet('nickname', $this->contact); if (!empty($contactuser)) { $contactlink = "@uri\">$contactuser->nickname"; - $instr = $instr . " Send a message to $contactlink to speed up the unsandboxing process."; + // TRANS: User instructions after registration. + // TRANS: %s is a clickable e-mailaddress. + $instr = sprintf(_m('Note you will initially be "sandboxed" so your posts will not appear in the public timeline. '. + 'Send a message to %s to speed up the unsandboxing process.'),$contactlink); } - } + } $output = common_markup_to_html($instr); $action->elementStart('div', 'instructions');