/**
* StatusNet, the distributed open-source microblogging tool
*
- * Plugin to add adittional awesomenss to StatusNet
+ * Plugin to add additional awesomenss to StatusNet
*
* PHP version 5
*
class AwesomenessPlugin extends Plugin
{
-
const VERSION = '0.0.42';
-
+
public function onPluginVersion(&$versions)
{
$versions[] = array(
'version' => self::VERSION,
'author' => 'Jeroen De Dauw',
'homepage' => 'http://status.net/wiki/Plugin:Awesomeness',
+ // TRANS: Plugin description for a sample plugin.
'rawdescription' => _m(
- 'The Awesomeness plugin adds adittional awesomeness ' .
- 'to your StatusNet install. '
+ 'The Awesomeness plugin adds aditional awesomeness ' .
+ 'to a StatusNet installation.'
)
);
return true;
}
-
+
/**
* Add the conrnify button
*
*
* @return void
*/
-
function onEndShowSections(Action $action)
- {
+ {
$action->elementStart('div', array('id' => 'cornify_section',
- 'class' => 'section'));
-
+ 'class' => 'section'));
+
$action->raw(
<<<EOT
<a href="http://www.cornify.com" onclick="cornify_add();return false;">
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(js);
})();</script>
EOT
- );
-
+ );
+
$action->elementEnd('div');
}
-
+
/**
* Hook for new-notice form processing to take our HTML goodies;
* won't affect API posting etc.
- *
+ *
* @param NewNoticeAction $action
* @param User $user
* @param string $content
$content = htmlspecialchars($content);
$options['rendered'] = preg_replace("/(^|\s|-)((?:awesome|awesomeness)[\?!\.\,]?)(\s|$)/i", " <b>$2</b> ", $content);
}
-
-}
\ No newline at end of file
+}
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: AwesomenessPlugin.php:56
+#: AwesomenessPlugin.php:55
msgid ""
-"The Awesomeness plugin adds adittional awesomeness to your StatusNet "
-"install. "
+"The Awesomeness plugin adds additional awesomeness to a StatusNet "
+"installation."
msgstr ""