From 7e8a079439dee178c88d8c5a87e75902719418bf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 9 Jun 2011 20:56:20 +0200 Subject: [PATCH] Anonymous: Internationalize some strings and localize them into French (thanks to skizzhg). --- plugins/Anonymous/locale/fr.po | 24 ++++++++++++++++++++---- plugins/Anonymous/messages.pot | 18 +++++++++++++++++- plugins/Anonymous/plugin.py | 10 +++++----- 3 files changed, 42 insertions(+), 10 deletions(-) diff --git a/plugins/Anonymous/locale/fr.po b/plugins/Anonymous/locale/fr.po index a56140e97..a67e9bf4b 100644 --- a/plugins/Anonymous/locale/fr.po +++ b/plugins/Anonymous/locale/fr.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Supybot-fr\n" -"POT-Creation-Date: 2010-10-16 15:14+CEST\n" +"POT-Creation-Date: 2011-06-09 18:26+CEST\n" "PO-Revision-Date: \n" "Last-Translator: Valentin Lorentz \n" "Language-Team: Supybot-fr \n" @@ -40,7 +40,7 @@ msgid "" " messages to other users." msgstr "Détermine si le bot requiérera que les cibles de la commande \"say\" soient publiques (c'est à dire des canaux). Si c'est True, le bot autorisera les personnes à utiliser la commande \"say\" pour envoyer des messages à d'autres utilisateurs en privé." -#: plugin.py:41 +#: plugin.py:40 msgid "" "This plugin allows users to act through the bot anonymously. The 'do'\n" " command has the bot perform an anonymous action in a given channel, and\n" @@ -55,7 +55,23 @@ msgid "" " " msgstr "" -#: plugin.py:81 +#: plugin.py:64 +msgid "You must be in %s to %q in there." +msgstr "Vous devez être sur %s pour y utiliser %q." + +#: plugin.py:68 +msgid "I'm lobotomized in %s." +msgstr "Je suis lobotomisé sur %s." + +#: plugin.py:71 +msgid "That channel has set its capabilities so as to disallow the use of this plugin." +msgstr "Ce canal a définit ses capacités de façon à désactiver l'utilisation de ce plugin." + +#: plugin.py:74 +msgid "%q cannot be used to send private messages." +msgstr "%q ne peut pas être utilisé pour envoyer des messages privés." + +#: plugin.py:80 msgid "" " \n" "\n" @@ -67,7 +83,7 @@ msgstr "" "\n" "Envoie le au . Vous ne pouvez envoyer à que si /cs register ##fschfsch supybot.plugins.Anonymous.allowPrivateTarget vaut True." -#: plugin.py:95 +#: plugin.py:94 msgid "" " \n" "\n" diff --git a/plugins/Anonymous/messages.pot b/plugins/Anonymous/messages.pot index 299a93fe9..0d3da92d3 100644 --- a/plugins/Anonymous/messages.pot +++ b/plugins/Anonymous/messages.pot @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2011-02-26 09:49+CET\n" +"POT-Creation-Date: 2011-06-09 18:26+CEST\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -58,6 +58,22 @@ msgid "" " " msgstr "" +#: plugin.py:64 +msgid "You must be in %s to %q in there." +msgstr "" + +#: plugin.py:68 +msgid "I'm lobotomized in %s." +msgstr "" + +#: plugin.py:71 +msgid "That channel has set its capabilities so as to disallow the use of this plugin." +msgstr "" + +#: plugin.py:74 +msgid "%q cannot be used to send private messages." +msgstr "" + #: plugin.py:80 #, docstring msgid "" diff --git a/plugins/Anonymous/plugin.py b/plugins/Anonymous/plugin.py index cdabd7efa..89b411377 100644 --- a/plugins/Anonymous/plugin.py +++ b/plugins/Anonymous/plugin.py @@ -61,17 +61,17 @@ class Anonymous(callbacks.Plugin): if irc.isChannel(target): if self.registryValue('requirePresenceInChannel', target) and \ msg.nick not in irc.state.channels[target].users: - irc.error(format('You must be in %s to %q in there.', + irc.error(format(_('You must be in %s to %q in there.'), target, action), Raise=True) c = ircdb.channels.getChannel(target) if c.lobotomized: - irc.error(format('I\'m lobotomized in %s.', target), + irc.error(format(_('I\'m lobotomized in %s.'), target), Raise=True) if not c._checkCapability(self.name()): - irc.error('That channel has set its capabilities so as to ' - 'disallow the use of this plugin.', Raise=True) + irc.error(_('That channel has set its capabilities so as to ' + 'disallow the use of this plugin.'), Raise=True) elif action == 'say' and not self.registryValue('allowPrivateTarget'): - irc.error(format('%q cannot be used to send private messages.', + irc.error(format(_('%q cannot be used to send private messages.'), action), Raise=True)