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:
Ken Spencer 2017-10-25 15:19:37 -04:00 committed by Valentin Lorentz
parent 71ed64e6b2
commit 76c73a57b9
29 changed files with 40 additions and 40 deletions

View File

@ -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."

View File

@ -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."

View File

@ -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 ""

View File

@ -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 ""

View File

@ -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."

View File

@ -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

View File

@ -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

View File

@ -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."

View File

@ -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 ""

View File

@ -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 ""

View File

@ -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 ""

View File

@ -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

View File

@ -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

View File

@ -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',

View File

@ -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 ""

View File

@ -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."

View File

@ -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."

View File

@ -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

View File

@ -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

View File

@ -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."

View File

@ -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."

View File

@ -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"
" " " "

View File

@ -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.
""" """

View File

@ -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)"

View File

@ -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)"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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