summaryrefslogtreecommitdiff
path: root/plugins/Awesomeness
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Awesomeness')
-rw-r--r--plugins/Awesomeness/AwesomenessPlugin.php30
-rw-r--r--plugins/Awesomeness/locale/Awesomeness.pot23
2 files changed, 37 insertions, 16 deletions
diff --git a/plugins/Awesomeness/AwesomenessPlugin.php b/plugins/Awesomeness/AwesomenessPlugin.php
index 294f09438..46a70a83f 100644
--- a/plugins/Awesomeness/AwesomenessPlugin.php
+++ b/plugins/Awesomeness/AwesomenessPlugin.php
@@ -2,7 +2,7 @@
/**
* StatusNet, the distributed open-source microblogging tool
*
- * Plugin to add adittional awesomenss to StatusNet
+ * Plugin to add additional awesomenss to StatusNet
*
* PHP version 5
*
@@ -42,9 +42,8 @@ if (!defined('STATUSNET')) {
class AwesomenessPlugin extends Plugin
{
-
const VERSION = '0.0.42';
-
+
public function onPluginVersion(&$versions)
{
$versions[] = array(
@@ -52,14 +51,15 @@ class AwesomenessPlugin extends Plugin
'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
*
@@ -67,12 +67,11 @@ class AwesomenessPlugin extends Plugin
*
* @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;">
@@ -86,15 +85,15 @@ class AwesomenessPlugin extends Plugin
(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
@@ -106,5 +105,4 @@ EOT
$content = htmlspecialchars($content);
$options['rendered'] = preg_replace("/(^|\s|-)((?:awesome|awesomeness)[\?!\.\,]?)(\s|$)/i", " <b>$2</b> ", $content);
}
-
-} \ No newline at end of file
+}
diff --git a/plugins/Awesomeness/locale/Awesomeness.pot b/plugins/Awesomeness/locale/Awesomeness.pot
new file mode 100644
index 000000000..0ff3732de
--- /dev/null
+++ b/plugins/Awesomeness/locale/Awesomeness.pot
@@ -0,0 +1,23 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2010-12-16 15:08+0000\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: AwesomenessPlugin.php:55
+msgid ""
+"The Awesomeness plugin adds additional awesomeness to a StatusNet "
+"installation."
+msgstr ""