Anonymous: Internationalize some strings and localize them into French (thanks to skizzhg).

This commit is contained in:
Valentin Lorentz 2011-06-09 20:56:20 +02:00
parent 37f2ef1634
commit 7e8a079439
3 changed files with 42 additions and 10 deletions

View File

@ -1,7 +1,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Supybot-fr\n" "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" "PO-Revision-Date: \n"
"Last-Translator: Valentin Lorentz <progval@gmail.com>\n" "Last-Translator: Valentin Lorentz <progval@gmail.com>\n"
"Language-Team: Supybot-fr <progval@gmail.com>\n" "Language-Team: Supybot-fr <progval@gmail.com>\n"
@ -40,7 +40,7 @@ msgid ""
" messages to other users." " 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é." 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 "" msgid ""
"This plugin allows users to act through the bot anonymously. The 'do'\n" "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" " command has the bot perform an anonymous action in a given channel, and\n"
@ -55,7 +55,23 @@ msgid ""
" " " "
msgstr "" 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 "" msgid ""
"<channel|nick> <text>\n" "<channel|nick> <text>\n"
"\n" "\n"
@ -67,7 +83,7 @@ msgstr ""
"\n" "\n"
"Envoie le <texte> au <canal|nick>. Vous ne pouvez envoyer à <nick> que si /cs register ##fschfsch supybot.plugins.Anonymous.allowPrivateTarget vaut True." "Envoie le <texte> au <canal|nick>. Vous ne pouvez envoyer à <nick> que si /cs register ##fschfsch supybot.plugins.Anonymous.allowPrivateTarget vaut True."
#: plugin.py:95 #: plugin.py:94
msgid "" msgid ""
"<channel> <action>\n" "<channel> <action>\n"
"\n" "\n"

View File

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -58,6 +58,22 @@ msgid ""
" " " "
msgstr "" 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 #: plugin.py:80
#, docstring #, docstring
msgid "" msgid ""

View File

@ -61,17 +61,17 @@ class Anonymous(callbacks.Plugin):
if irc.isChannel(target): if irc.isChannel(target):
if self.registryValue('requirePresenceInChannel', target) and \ if self.registryValue('requirePresenceInChannel', target) and \
msg.nick not in irc.state.channels[target].users: 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) target, action), Raise=True)
c = ircdb.channels.getChannel(target) c = ircdb.channels.getChannel(target)
if c.lobotomized: if c.lobotomized:
irc.error(format('I\'m lobotomized in %s.', target), irc.error(format(_('I\'m lobotomized in %s.'), target),
Raise=True) Raise=True)
if not c._checkCapability(self.name()): if not c._checkCapability(self.name()):
irc.error('That channel has set its capabilities so as to ' irc.error(_('That channel has set its capabilities so as to '
'disallow the use of this plugin.', Raise=True) 'disallow the use of this plugin.'), Raise=True)
elif action == 'say' and not self.registryValue('allowPrivateTarget'): 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), action),
Raise=True) Raise=True)