PluginDownloader: add @plugin help PluginDownloader.

This commit is contained in:
Mika Suomalainen 2012-04-29 19:25:44 +03:00
parent 124ca33f4e
commit 7fadad0e3d
2 changed files with 18 additions and 12 deletions

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2012-03-11 20:58+UTC\n" "POT-Creation-Date: 2012-04-29 19:20+EEST\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -15,14 +15,17 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n" "Generated-By: pygettext.py 1.5\n"
#: plugin.py:219 #: plugin.py:245
#, docstring #, docstring
msgid "" msgid ""
"Add the help for \"@plugin help PluginDownloader\" here\n" "This plugin allows you to install unofficial plugins from\n"
" This should describe *how* to use this plugin." " multiple repositories easily. Use the \"repolist\" command to see list of\n"
" available repositories and \"repolist <repository>\" to list plugins, \n"
" which are available in that repository. When you want to install plugin,\n"
" just run command \"install <repository> <plugin>\"."
msgstr "" msgstr ""
#: plugin.py:224 #: plugin.py:253
#, docstring #, docstring
msgid "" msgid ""
"[<repository>]\n" "[<repository>]\n"
@ -32,19 +35,19 @@ msgid ""
" repositories." " repositories."
msgstr "" msgstr ""
#: plugin.py:232 plugin.py:243 #: plugin.py:261 plugin.py:272
msgid ", " msgid ", "
msgstr "" msgstr ""
#: plugin.py:234 plugin.py:253 #: plugin.py:263 plugin.py:282
msgid "This repository does not exist or is not known by this bot." msgid "This repository does not exist or is not known by this bot."
msgstr "" msgstr ""
#: plugin.py:241 #: plugin.py:270
msgid "No plugin found in this repository." msgid "No plugin found in this repository."
msgstr "" msgstr ""
#: plugin.py:248 #: plugin.py:277
#, docstring #, docstring
msgid "" msgid ""
"<repository> <plugin>\n" "<repository> <plugin>\n"
@ -52,7 +55,7 @@ msgid ""
" Downloads and installs the <plugin> from the <repository>." " Downloads and installs the <plugin> from the <repository>."
msgstr "" msgstr ""
#: plugin.py:258 #: plugin.py:287
msgid "This plugin does not exist in this repository." msgid "This plugin does not exist in this repository."
msgstr "" msgstr ""

View File

@ -242,8 +242,11 @@ repositories = {
} }
class PluginDownloader(callbacks.Plugin): class PluginDownloader(callbacks.Plugin):
"""Add the help for "@plugin help PluginDownloader" here """This plugin allows you to install unofficial plugins from
This should describe *how* to use this plugin.""" multiple repositories easily. Use the "repolist" command to see list of
available repositories and "repolist <repository>" to list plugins,
which are available in that repository. When you want to install plugin,
just run command "install <repository> <plugin>"."""
@internationalizeDocstring @internationalizeDocstring
def repolist(self, irc, msg, args, repository): def repolist(self, irc, msg, args, repository):