From 8864a7fc718a9c7febcf8eae3efbf8c35d6de667 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 26 Oct 2010 19:22:39 +0200 Subject: [PATCH] Fix Ctcp internationalization --- plugins/Ctcp/locale/fr.po | 19 ++++++++++++++++ plugins/Ctcp/messages.pot | 47 ++------------------------------------- plugins/Ctcp/plugin.py | 4 ++-- 3 files changed, 23 insertions(+), 47 deletions(-) create mode 100644 plugins/Ctcp/locale/fr.po diff --git a/plugins/Ctcp/locale/fr.po b/plugins/Ctcp/locale/fr.po new file mode 100644 index 000000000..0b9193541 --- /dev/null +++ b/plugins/Ctcp/locale/fr.po @@ -0,0 +1,19 @@ +msgid "" +msgstr "" +"Project-Id-Version: Supybot-fr\n" +"POT-Creation-Date: 2010-10-26 18:57+CEST\n" +"PO-Revision-Date: \n" +"Last-Translator: Valentin Lorentz \n" +"Language-Team: Supybot-fr \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Français\n" +"X-Poedit-Country: France\n" +"X-Poedit-SourceCharset: ASCII\n" + +#: plugin.py:104 +msgid "Supybot, the best Python IRC bot in existence!" +msgstr "Supybot, le meilleur bot IRC en Python au monde !" + diff --git a/plugins/Ctcp/messages.pot b/plugins/Ctcp/messages.pot index 82cf6a28c..61064f706 100644 --- a/plugins/Ctcp/messages.pot +++ b/plugins/Ctcp/messages.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2010-10-17 10:16+CEST\n" +"POT-Creation-Date: 2010-10-26 18:57+CEST\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -15,50 +15,7 @@ msgstr "" "Generated-By: pygettext.py 1.5\n" -#: plugin.py:77 -#, docstring -msgid "\001PING ?(.*)\001" -msgstr "" - -#: plugin.py:86 -#, docstring -msgid "\001VERSION\001" -msgstr "" - -#: plugin.py:91 -#, docstring -msgid "\001USERINFO\001" -msgstr "" - -#: plugin.py:96 -#, docstring -msgid "\001TIME\001" -msgstr "" - -#: plugin.py:101 -#, docstring -msgid "\001FINGER\001" -msgstr "" - #: plugin.py:104 -msgid "FINGER Supybot, the best Python IRC bot in existence!" -msgstr "" - -#: plugin.py:107 -#, docstring -msgid "\001SOURCE\001" -msgstr "" - -#: plugin.py:123 -#, docstring -msgid "" -"[] [--nicks]\n" -"\n" -" Sends a CTCP VERSION to , returning the various\n" -" version strings returned. It waits for 10 seconds before returning\n" -" the versions received at that point. If --nicks is given, nicks are\n" -" associated with the version strings; otherwise, only the version\n" -" strings are given.\n" -" " +msgid "Supybot, the best Python IRC bot in existence!" msgstr "" diff --git a/plugins/Ctcp/plugin.py b/plugins/Ctcp/plugin.py index fb9b89b03..94dc3e2ed 100644 --- a/plugins/Ctcp/plugin.py +++ b/plugins/Ctcp/plugin.py @@ -100,8 +100,8 @@ class Ctcp(callbacks.PluginRegexp): def ctcpFinger(self, irc, msg, match): "\x01FINGER\x01" self.log.info('Received CTCP FINGER from %s', msg.prefix) - self._reply(irc, msg, - _('FINGER Supybot, the best Python IRC bot in existence!')) + self._reply(irc, msg, 'FINGER ' + + _('Supybot, the best Python IRC bot in existence!')) def ctcpSource(self, irc, msg, match): "\x01SOURCE\x01"