mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 22:29:24 +01:00
Use a prefix-less help string, don't assume a '@' prefix (#1309)
* Use a prefix-less help string, don't assume a '@' prefix * Nickometer: follow through on plugin.py with ` -> '
This commit is contained in:
parent
71ed64e6b2
commit
76c73a57b9
@ -250,8 +250,8 @@ msgid "Error occured when importing the %n: %L"
|
|||||||
msgstr "Virhe komennon %n tuomisessa: %L"
|
msgstr "Virhe komennon %n tuomisessa: %L"
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "Add the help for \"@plugin help Aka\" here\n"
|
#~ "Add the help for 'plugin help Aka' here\n"
|
||||||
#~ " This should describe *how* to use this plugin."
|
#~ " This should describe *how* to use this plugin."
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Lisää ohje komentoa \"@plugin help Aka\" varten tähän.\n"
|
#~ "Lisää ohje komentoa 'plugin help Aka' varten tähän.\n"
|
||||||
#~ " Tämän pitäisi kuvata *kuinka* tätä lisä-osaa käytetään."
|
#~ " Tämän pitäisi kuvata *kuinka* tätä lisä-osaa käytetään."
|
||||||
|
@ -282,8 +282,8 @@ msgstr ""
|
|||||||
" "
|
" "
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "Add the help for \"@plugin help Conditional\" here\n"
|
#~ "Add the help for 'plugin help Conditional' here\n"
|
||||||
#~ " This should describe *how* to use this plugin."
|
#~ " This should describe *how* to use this plugin."
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Lisää ohje \"@plugin help Conditional\" tähän.\n"
|
#~ "Lisää ohje 'plugin help Conditional' tähän.\n"
|
||||||
#~ " Tämän pitäisi kuvata *kuinka* tätä lisäosaa käytetään."
|
#~ " Tämän pitäisi kuvata *kuinka* tätä lisäosaa käytetään."
|
||||||
|
@ -14,7 +14,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plugin.py:57
|
#: plugin.py:57
|
||||||
msgid ""
|
msgid ""
|
||||||
"Add the help for \"@plugin help Conditional\" here\n"
|
"Add the help for 'plugin help Conditional' here\n"
|
||||||
" This should describe *how* to use this plugin."
|
" This should describe *how* to use this plugin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ msgstr ""
|
|||||||
#: plugin.py:64
|
#: plugin.py:64
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"Add the help for \"@plugin help Conditional\" here\n"
|
"Add the help for 'plugin help Conditional' here\n"
|
||||||
" This should describe *how* to use this plugin."
|
" This should describe *how* to use this plugin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -99,5 +99,5 @@ msgstr ""
|
|||||||
" Palauttaa IP:een heksadesimaalisen IP:een IP:lle.\n"
|
" Palauttaa IP:een heksadesimaalisen IP:een IP:lle.\n"
|
||||||
" "
|
" "
|
||||||
|
|
||||||
#~ msgid "Add the help for \"@help Internet\" here."
|
#~ msgid "Add the help for \"help Internet\" here."
|
||||||
#~ msgstr "Lisää ohje \"@help Internet:ille\" tähän."
|
#~ msgstr "Lisää ohje \"help Internet:ille\" tähän."
|
||||||
|
@ -14,7 +14,7 @@ msgstr ""
|
|||||||
"X-Poedit-SourceCharset: ASCII\n"
|
"X-Poedit-SourceCharset: ASCII\n"
|
||||||
|
|
||||||
#: plugin.py:43
|
#: plugin.py:43
|
||||||
msgid "Add the help for \"@help Internet\" here."
|
msgid "Add the help for \"help Internet\" here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:47
|
#: plugin.py:47
|
||||||
|
@ -12,7 +12,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plugin.py:42
|
#: plugin.py:42
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Add the help for \"@help Internet\" here."
|
msgid "Add the help for \"help Internet\" here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:46
|
#: plugin.py:46
|
||||||
|
@ -362,10 +362,10 @@ msgid "No factoids in the database."
|
|||||||
msgstr "Tietokannassa ei ole factoideja."
|
msgstr "Tietokannassa ei ole factoideja."
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "Add the help for \"@help MoobotFactoids\" here (assuming you don't "
|
#~ "Add the help for \"help MoobotFactoids\" here (assuming you don't "
|
||||||
#~ "implement a MoobotFactoids\n"
|
#~ "implement a MoobotFactoids\n"
|
||||||
#~ " command). This should describe *how* to use this plugin."
|
#~ " command). This should describe *how* to use this plugin."
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Lisää ohje \"@help MoobotFactoids\":lle tähän (olettaen ettet luo "
|
#~ "Lisää ohje \"help MoobotFactoids\":lle tähän (olettaen ettet luo "
|
||||||
#~ "MoobotFactoids\n"
|
#~ "MoobotFactoids\n"
|
||||||
#~ " komentoa). Tämän pitäisi kertoa *kuinka* tätä laajennusta käytetään."
|
#~ " komentoa). Tämän pitäisi kertoa *kuinka* tätä laajennusta käytetään."
|
||||||
|
@ -31,7 +31,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plugin.py:288
|
#: plugin.py:288
|
||||||
msgid ""
|
msgid ""
|
||||||
"Add the help for \"@help MoobotFactoids\" here (assuming you don't implement "
|
"Add the help for \"help MoobotFactoids\" here (assuming you don't implement "
|
||||||
"a MoobotFactoids\n"
|
"a MoobotFactoids\n"
|
||||||
" command). This should describe *how* to use this plugin."
|
" command). This should describe *how* to use this plugin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -28,7 +28,7 @@ msgstr "Determina quanti elementi mostrare con il comando \"most\"."
|
|||||||
#: plugin.py:289
|
#: plugin.py:289
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"Add the help for \"@help MoobotFactoids\" here (assuming you don't implement a MoobotFactoids\n"
|
"Add the help for \"help MoobotFactoids\" here (assuming you don't implement a MoobotFactoids\n"
|
||||||
" command). This should describe *how* to use this plugin."
|
" command). This should describe *how* to use this plugin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -18,10 +18,10 @@ msgstr ""
|
|||||||
"X-Generator: Poedit 1.6.10\n"
|
"X-Generator: Poedit 1.6.10\n"
|
||||||
|
|
||||||
#: plugin.py:81
|
#: plugin.py:81
|
||||||
msgid "Will tell you how lame a nick is by the command `@nickometer [nick]`."
|
msgid "Will tell you how lame a nick is by the command 'nickometer [nick]'."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Kertoo kuinka laimea nimimerkki on komennolla\n"
|
"Kertoo kuinka laimea nimimerkki on komennolla\n"
|
||||||
" `@nickometer [nimimerkki]."
|
" 'nickometer [nimimerkki]'"
|
||||||
|
|
||||||
#: plugin.py:88
|
#: plugin.py:88
|
||||||
msgid ""
|
msgid ""
|
||||||
|
@ -17,7 +17,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plugin.py:81
|
#: plugin.py:81
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Will tell you how lame a nick is by the command `@nickometer [nick]`."
|
msgid "Will tell you how lame a nick is by the command `nickometer [nick]`."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:88
|
#: plugin.py:88
|
||||||
|
@ -79,7 +79,7 @@ def numberShifts(s):
|
|||||||
return len(s)-1
|
return len(s)-1
|
||||||
|
|
||||||
class Nickometer(callbacks.Plugin):
|
class Nickometer(callbacks.Plugin):
|
||||||
"""Will tell you how lame a nick is by the command `@nickometer [nick]`."""
|
"""Will tell you how lame a nick is by the command 'nickometer [nick]'."""
|
||||||
def punish(self, damage, reason):
|
def punish(self, damage, reason):
|
||||||
self.log.debug('%s lameness points awarded: %s', damage, reason)
|
self.log.debug('%s lameness points awarded: %s', damage, reason)
|
||||||
return damage
|
return damage
|
||||||
|
@ -47,7 +47,7 @@ conf.registerGlobalValue(Owner, 'public',
|
|||||||
visible."""))
|
visible."""))
|
||||||
conf.registerGlobalValue(Owner, 'announceFormat',
|
conf.registerGlobalValue(Owner, 'announceFormat',
|
||||||
registry.String('Announcement from my owner ($owner): $text',
|
registry.String('Announcement from my owner ($owner): $text',
|
||||||
"""Determines the format of messages sent by the @announce command.
|
"""Determines the format of messages sent by the 'announce' command.
|
||||||
$owner may be used for the username of the owner calling this command,
|
$owner may be used for the username of the owner calling this command,
|
||||||
and $text for the announcement being made."""))
|
and $text for the announcement being made."""))
|
||||||
conf.registerGlobalValue(Owner, 'quitMsg',
|
conf.registerGlobalValue(Owner, 'quitMsg',
|
||||||
|
@ -13,7 +13,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plugin.py:219
|
#: plugin.py:219
|
||||||
msgid ""
|
msgid ""
|
||||||
"Add the help for \"@plugin help PluginDownloader\" here\n"
|
"Add the help for 'plugin help PluginDownloader' here\n"
|
||||||
" This should describe *how* to use this plugin."
|
" This should describe *how* to use this plugin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -118,8 +118,8 @@ msgid "This plugin has no description."
|
|||||||
msgstr "Tällä lisäosalla ei ole kuvausta."
|
msgstr "Tällä lisäosalla ei ole kuvausta."
|
||||||
|
|
||||||
#~ msgid ""
|
#~ msgid ""
|
||||||
#~ "Add the help for \"@plugin help PluginDownloader\" here\n"
|
#~ "Add the help for 'plugin help PluginDownloader' here\n"
|
||||||
#~ " This should describe *how* to use this plugin."
|
#~ " This should describe *how* to use this plugin."
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Lisää ohjeteksti komennolle \"@plugin help PluginDownloader\" tähän.\n"
|
#~ "Lisää ohjeteksti komennolle 'plugin help PluginDownloader' tähän.\n"
|
||||||
#~ " Tämän pitäisi kuvata *kuinka* tätä lisäosaa käytetään."
|
#~ " Tämän pitäisi kuvata *kuinka* tätä lisäosaa käytetään."
|
||||||
|
@ -240,5 +240,5 @@ msgstr ""
|
|||||||
msgid "No quotegrabs matching %s"
|
msgid "No quotegrabs matching %s"
|
||||||
msgstr "Ei %s:ään täsmääviä lainauksia"
|
msgstr "Ei %s:ään täsmääviä lainauksia"
|
||||||
|
|
||||||
#~ msgid "Add the help for \"@help QuoteGrabs\" here."
|
#~ msgid "Add the help for \"help QuoteGrabs\" here."
|
||||||
#~ msgstr "Lisää ohje \"@help QuoteGrabs\"ille tähän."
|
#~ msgstr "Lisää ohje \"help QuoteGrabs\"ille tähän."
|
||||||
|
@ -47,7 +47,7 @@ msgid "%s (Said by: %s; grabbed by %s at %t)"
|
|||||||
msgstr "%s (Dit par %s ; récupéré par %s à %t)"
|
msgstr "%s (Dit par %s ; récupéré par %s à %t)"
|
||||||
|
|
||||||
#: plugin.py:210
|
#: plugin.py:210
|
||||||
msgid "Add the help for \"@help QuoteGrabs\" here."
|
msgid "Add the help for \"help QuoteGrabs\" here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:249
|
#: plugin.py:249
|
||||||
|
@ -55,7 +55,7 @@ msgstr "%s (Detto da: %s; pescato da %s il %t)"
|
|||||||
|
|
||||||
#: plugin.py:226
|
#: plugin.py:226
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Add the help for \"@help QuoteGrabs\" here."
|
msgid "Add the help for \"help QuoteGrabs\" here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:265
|
#: plugin.py:265
|
||||||
|
@ -555,14 +555,14 @@ msgstr "Kieltäydyn vaihtamasta aiheen paikkaa sen itsensä kanssa."
|
|||||||
msgid ""
|
msgid ""
|
||||||
"[<channel>]\n"
|
"[<channel>]\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Saves the topic in <channel> to be restored with @topic default\n"
|
" Saves the topic in <channel> to be restored with 'topic default'\n"
|
||||||
" later. <channel> is only necessary if the message isn't sent in\n"
|
" later. <channel> is only necessary if the message isn't sent in\n"
|
||||||
" the channel itself.\n"
|
" the channel itself.\n"
|
||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"[<kanava>]\n"
|
"[<kanava>]\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Tallentaa aiheen <kanavalla>, jotta se voidaan palauttaa \"@topic default\"—"
|
" Tallentaa aiheen <kanavalla>, jotta se voidaan palauttaa 'topic default'—"
|
||||||
"komennolla\n"
|
"komennolla\n"
|
||||||
" myöhemmin. <Kanava> on vaadittu vain, ellei viestiä lähetetä kanavalla "
|
" myöhemmin. <Kanava> on vaadittu vain, ellei viestiä lähetetä kanavalla "
|
||||||
"itsellään."
|
"itsellään."
|
||||||
|
@ -459,14 +459,14 @@ msgstr "Je refuse d'échanger un topic avec lui-même."
|
|||||||
msgid ""
|
msgid ""
|
||||||
"[<channel>]\n"
|
"[<channel>]\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Saves the topic in <channel> to be restored with @topic default\n"
|
" Saves the topic in <channel> to be restored with 'topic default'\n"
|
||||||
" later. <channel> is only necessary if the message isn't sent in\n"
|
" later. <channel> is only necessary if the message isn't sent in\n"
|
||||||
" the channel itself.\n"
|
" the channel itself.\n"
|
||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"[<canal>]\n"
|
"[<canal>]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Enregistre le topic du <canal> pour être restauré avec @topic default par la "
|
"Enregistre le topic du <canal> pour être restauré avec 'topic default' par la "
|
||||||
"suite. <canal> n'est nécessaire que si vous n'exécutez pas la commande dans "
|
"suite. <canal> n'est nécessaire que si vous n'exécutez pas la commande dans "
|
||||||
"le canal lui-même."
|
"le canal lui-même."
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ msgstr ""
|
|||||||
msgid ""
|
msgid ""
|
||||||
"[<channel>]\n"
|
"[<channel>]\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Saves the topic in <channel> to be restored with @topic default\n"
|
" Saves the topic in <channel> to be restored with 'topic default'\n"
|
||||||
" later. <channel> is only necessary if the message isn't sent in\n"
|
" later. <channel> is only necessary if the message isn't sent in\n"
|
||||||
" the channel itself.\n"
|
" the channel itself.\n"
|
||||||
" "
|
" "
|
||||||
|
@ -577,7 +577,7 @@ class Topic(callbacks.Plugin):
|
|||||||
def save(self, irc, msg, args, channel):
|
def save(self, irc, msg, args, channel):
|
||||||
"""[<channel>]
|
"""[<channel>]
|
||||||
|
|
||||||
Saves the topic in <channel> to be restored with @topic default
|
Saves the topic in <channel> to be restored with 'topic default'
|
||||||
later. <channel> is only necessary if the message isn't sent in
|
later. <channel> is only necessary if the message isn't sent in
|
||||||
the channel itself.
|
the channel itself.
|
||||||
"""
|
"""
|
||||||
|
@ -37,8 +37,8 @@ msgid ""
|
|||||||
msgstr "Legt die maximal Anzahl an Bytes fest die der Bot über den 'fetch' Befehl herunterläd."
|
msgstr "Legt die maximal Anzahl an Bytes fest die der Bot über den 'fetch' Befehl herunterläd."
|
||||||
|
|
||||||
#: plugin.py:71
|
#: plugin.py:71
|
||||||
msgid "Add the help for \"@help Web\" here."
|
msgid "Add the help for \"help Web\" here."
|
||||||
msgstr "Füge die Hilfe für \"@help Web\" hier hinzu."
|
msgstr "Füge die Hilfe für \"help Web\" hier hinzu."
|
||||||
|
|
||||||
#: plugin.py:107
|
#: plugin.py:107
|
||||||
msgid "Title: %s (at %s)"
|
msgid "Title: %s (at %s)"
|
||||||
|
@ -84,8 +84,8 @@ msgid "Display a nice error instead of \"An error has occurred\"."
|
|||||||
msgstr "Näytä kiva virheilmoitus ilmoitukset \"Virhe on tapahtunut\" sijaan."
|
msgstr "Näytä kiva virheilmoitus ilmoitukset \"Virhe on tapahtunut\" sijaan."
|
||||||
|
|
||||||
#: plugin.py:121
|
#: plugin.py:121
|
||||||
msgid "Add the help for \"@help Web\" here."
|
msgid "Add the help for \"help Web\" here."
|
||||||
msgstr "Lisää ohje komennolle \"@help Web\" tähän."
|
msgstr "Lisää ohje komennolle \"help Web\" tähän."
|
||||||
|
|
||||||
#: plugin.py:166
|
#: plugin.py:166
|
||||||
msgid "Title: %s (at %s)"
|
msgid "Title: %s (at %s)"
|
||||||
|
@ -71,7 +71,7 @@ msgid "Display a nice error instead of \"An error has occurred\"."
|
|||||||
msgstr "."
|
msgstr "."
|
||||||
|
|
||||||
#: plugin.py:116
|
#: plugin.py:116
|
||||||
msgid "Add the help for \"@help Web\" here."
|
msgid "Add the help for \"help Web\" here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:162
|
#: plugin.py:162
|
||||||
|
@ -36,7 +36,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plugin.py:71
|
#: plugin.py:71
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Add the help for \"@help Web\" here."
|
msgid "Add the help for \"help Web\" here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:107
|
#: plugin.py:107
|
||||||
|
@ -65,7 +65,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: plugin.py:121
|
#: plugin.py:121
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Add the help for \"@help Web\" here."
|
msgid "Add the help for \"help Web\" here."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:166
|
#: plugin.py:166
|
||||||
|
@ -138,7 +138,7 @@ def catch_web_errors(f):
|
|||||||
return utils.python.changeFunctionName(newf, f.__name__, f.__doc__)
|
return utils.python.changeFunctionName(newf, f.__name__, f.__doc__)
|
||||||
|
|
||||||
class Web(callbacks.PluginRegexp):
|
class Web(callbacks.PluginRegexp):
|
||||||
"""Add the help for "@help Web" here."""
|
"""Add the help for 'help Web' here."""
|
||||||
regexps = ['titleSnarfer']
|
regexps = ['titleSnarfer']
|
||||||
threaded = True
|
threaded = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user