mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Anonymous: Internationalize some strings and localize them into French (thanks to skizzhg).
This commit is contained in:
parent
37f2ef1634
commit
7e8a079439
@ -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 <progval@gmail.com>\n"
|
||||
"Language-Team: Supybot-fr <progval@gmail.com>\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 ""
|
||||
"<channel|nick> <text>\n"
|
||||
"\n"
|
||||
@ -67,7 +83,7 @@ msgstr ""
|
||||
"\n"
|
||||
"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 ""
|
||||
"<channel> <action>\n"
|
||||
"\n"
|
||||
|
@ -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 <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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 ""
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user