From 7fb900d8df61b3fafa46be0a6963e0d464f8b9cc Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 24 Oct 2010 13:50:46 +0200 Subject: [PATCH 1/2] Fix misspell in Herald --- plugins/Herald/config.py | 2 +- plugins/Herald/plugin.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Herald/config.py b/plugins/Herald/config.py index 7c5cbac1d..801865ea6 100644 --- a/plugins/Herald/config.py +++ b/plugins/Herald/config.py @@ -30,7 +30,7 @@ import supybot.conf as conf import supybot.registry as registry from supybot.i18n import PluginInternationalization, internationalizeDocstring -_ = PluginInternationalization('Heral') +_ = PluginInternationalization('Herald') def configure(advanced): # This will be called by supybot to configure this module. advanced is diff --git a/plugins/Herald/plugin.py b/plugins/Herald/plugin.py index e4b99bd40..833208ae8 100644 --- a/plugins/Herald/plugin.py +++ b/plugins/Herald/plugin.py @@ -41,7 +41,7 @@ import supybot.ircutils as ircutils import supybot.callbacks as callbacks from supybot.utils.structures import TimeoutQueue from supybot.i18n import PluginInternationalization, internationalizeDocstring -_ = PluginInternationalization('Heral') +_ = PluginInternationalization('Herald') filename = conf.supybot.directories.data.dirize('Herald.db') From 007c58703fd913ba53aa97e46316fd94e9f1155e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 25 Oct 2010 13:11:59 +0200 Subject: [PATCH 2/2] Remove internationalization of a non-internationalizable string --- plugins/Channel/messages.pot | 6 +----- plugins/Channel/plugin.py | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/Channel/messages.pot b/plugins/Channel/messages.pot index 4e73c5e42..ee821ac23 100644 --- a/plugins/Channel/messages.pot +++ b/plugins/Channel/messages.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-10-16 10:17+CEST\n" +"POT-Creation-Date: 2010-10-25 13:10+CEST\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -305,10 +305,6 @@ msgid "" " " msgstr "" -#: plugin.py:409 -msgid "haveOp" -msgstr "" - #: plugin.py:409 msgid "invite someone" msgstr "" diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index 9e65004f6..982c9017a 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -406,7 +406,7 @@ class Channel(callbacks.Plugin): nick = nick or msg.nick self._sendMsg(irc, ircmsgs.invite(nick, channel)) self.invites[(irc.getRealIrc(), ircutils.toLower(nick))] = irc - invite = wrap(invite, ['op', (_('haveOp'), _('invite someone')), + invite = wrap(invite, ['op', ('haveOp', _('invite someone')), additional('nick')]) def do341(self, irc, msg):