mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-06 09:34:05 +01:00
Conditional: internationalize and localize in French
This commit is contained in:
parent
aef0b6865d
commit
2779b676c2
@ -31,6 +31,16 @@
|
|||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
|
|
||||||
|
try:
|
||||||
|
from supybot.i18n import PluginInternationalization
|
||||||
|
from supybot.i18n import internationalizeDocstring
|
||||||
|
_ = PluginInternationalization('Conditional')
|
||||||
|
except:
|
||||||
|
# This are useless functions that's allow to run the plugin on a bot
|
||||||
|
# without the i18n plugin
|
||||||
|
_ = lambda x:x
|
||||||
|
internationalizeDocstring = lambda x:x
|
||||||
|
|
||||||
def configure(advanced):
|
def configure(advanced):
|
||||||
# This will be called by supybot to configure this module. advanced is
|
# This will be called by supybot to configure this module. advanced is
|
||||||
# a bool that specifies whether the user identified himself as an advanced
|
# a bool that specifies whether the user identified himself as an advanced
|
||||||
|
229
plugins/Conditional/locale/fr.po
Normal file
229
plugins/Conditional/locale/fr.po
Normal file
@ -0,0 +1,229 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Gribble\n"
|
||||||
|
"POT-Creation-Date: 2010-11-02 11:39+CET\n"
|
||||||
|
"PO-Revision-Date: \n"
|
||||||
|
"Last-Translator: Valentin Lorentz <progval@gmail.com>\n"
|
||||||
|
"Language-Team: Supybot-fr <progval@gmail.com>\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:64
|
||||||
|
msgid ""
|
||||||
|
"Add the help for \"@plugin help Conditional\" here\n"
|
||||||
|
" This should describe *how* to use this plugin."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: plugin.py:71
|
||||||
|
msgid "Run a command from message, as if command was sent over IRC."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: plugin.py:80
|
||||||
|
msgid ""
|
||||||
|
"<condition> <ifcommand> <elsecommand>\n"
|
||||||
|
" \n"
|
||||||
|
" Runs <ifcommand> if <condition> evaluates to true, runs <elsecommand>\n"
|
||||||
|
" if it evaluates to false.\n"
|
||||||
|
" \n"
|
||||||
|
" Use other logical operators defined in this plugin and command nesting\n"
|
||||||
|
" to your advantage here.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<condition> <commande1> <commande2>\n"
|
||||||
|
"\n"
|
||||||
|
"Exécute la <commande1> si la <condition> est évaluée à true, lance la <commande2> si elle est évaluée à false. Utilisez d'autres opérateurs logiques définis dans ce plugin et l'imbrication de commandes à votre avantage."
|
||||||
|
|
||||||
|
#: plugin.py:97
|
||||||
|
msgid ""
|
||||||
|
"<cond1> [<cond2> ... <condN>]\n"
|
||||||
|
" \n"
|
||||||
|
" Returns true if all conditions supplied evaluate to true.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<condition1> [<condition2> ... <conditionN>]\n"
|
||||||
|
"\n"
|
||||||
|
"Retourne True si toutes les conditions sont évaluées à true."
|
||||||
|
|
||||||
|
#: plugin.py:109
|
||||||
|
msgid ""
|
||||||
|
"<cond1> [<cond2> ... <condN>]\n"
|
||||||
|
" \n"
|
||||||
|
" Returns true if any one of conditions supplied evaluates to true.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<condition1> [<condition2> ... <conditionN>]\n"
|
||||||
|
"\n"
|
||||||
|
"Retourne True si une au moins des conditions est évaluée à true."
|
||||||
|
|
||||||
|
#: plugin.py:121
|
||||||
|
msgid ""
|
||||||
|
"<cond1> [<cond2> ... <condN>]\n"
|
||||||
|
" \n"
|
||||||
|
" Returns true if only one of conditions supplied evaluates to true.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<condition1> [<condition2> ... <conditionN>]\n"
|
||||||
|
"\n"
|
||||||
|
"Retourne True si une seule des conditions est évaluée à true."
|
||||||
|
|
||||||
|
#: plugin.py:133
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a string comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if they are equal.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison de chaîne entre <élément1> et <élément2>. Retourne true si ils sont égaux."
|
||||||
|
|
||||||
|
#: plugin.py:146
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a string comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if they are not equal.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison de chaîne entre <élément1> et <élément2>. Retourne true si ils sont inégaux."
|
||||||
|
|
||||||
|
#: plugin.py:159
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a string comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if <item1> is greater than <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison de chaîne entre <élément1> et <élément2>. Retourne true si <élément1> est plus grand que <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:172
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a string comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if <item1> is greater than or equal to <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison de chaîne entre <élément1> et <élément2>. Retourne true si <élément1> est plus grand ou égal à <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:185
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a string comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if <item1> is less than <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison de chaîne entre <élément1> et <élément2>. Retourne true si <élément1> est plus petit que <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:198
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a string comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if <item1> is less than or equal to <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison de chaîne entre <élément1> et <élément2>. Retourne true si <élément1> est plus petit ou égal à <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:211
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Determines if <item1> is a substring of <item2>. \n"
|
||||||
|
" Returns true if <item1> is contained in <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Détermine si <élément1> est une sous-chaîne de <élément2>. Retourne true si <élément1> est contenu dans <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:224
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a numeric comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if they are equal.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison numérique entre <élément1> et <élément2>. Retourne true si ils sont égaux."
|
||||||
|
|
||||||
|
#: plugin.py:237
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a numeric comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if they are not equal.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison numérique entre <élément1> et <élément2>. Retourne true si ils sont inégaux."
|
||||||
|
|
||||||
|
#: plugin.py:250
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a numeric comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if they <item1> is greater than <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison numérique entre <élément1> et <élément2>. Retourne true si <élément1> est plus grand que <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:263
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a numeric comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if <item1> is greater than or equal to <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison numérique entre <élément1> et <élément2>. Retourne true si <élément1> est plus grand ou égal à <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:276
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a numeric comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if <item1> is less than <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison numérique entre <élément1> et <élément2>. Retourne true si <élément1> est plus petit que <élément2>"
|
||||||
|
|
||||||
|
#: plugin.py:289
|
||||||
|
msgid ""
|
||||||
|
"<item1> <item2>\n"
|
||||||
|
" \n"
|
||||||
|
" Does a numeric comparison on <item1> and <item2>. \n"
|
||||||
|
" Returns true if <item1> is less than or equal to <item2>.\n"
|
||||||
|
" "
|
||||||
|
msgstr ""
|
||||||
|
"<élément1> <élément2>\n"
|
||||||
|
"\n"
|
||||||
|
"Fait une comparaison numérique entre <élément1> et <élément2>. Retourne true si <élément1> est plus petit ou égal à <élément2>"
|
||||||
|
|
@ -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: 2010-11-02 11:39+CET\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"
|
||||||
@ -15,19 +15,19 @@ msgstr ""
|
|||||||
"Generated-By: pygettext.py 1.5\n"
|
"Generated-By: pygettext.py 1.5\n"
|
||||||
|
|
||||||
|
|
||||||
#: plugin.py:54
|
#: plugin.py:64
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"Add the help for \"@plugin help Conditional\" here\n"
|
"Add the help for \"@plugin help Conditional\" here\n"
|
||||||
" This should describe *how* to use this plugin."
|
" This should describe *how* to use this plugin."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:61
|
#: plugin.py:71
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid "Run a command from message, as if command was sent over IRC."
|
msgid "Run a command from message, as if command was sent over IRC."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:69
|
#: plugin.py:80
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<condition> <ifcommand> <elsecommand>\n"
|
"<condition> <ifcommand> <elsecommand>\n"
|
||||||
@ -40,7 +40,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:85
|
#: plugin.py:97
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<cond1> [<cond2> ... <condN>]\n"
|
"<cond1> [<cond2> ... <condN>]\n"
|
||||||
@ -49,7 +49,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:96
|
#: plugin.py:109
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<cond1> [<cond2> ... <condN>]\n"
|
"<cond1> [<cond2> ... <condN>]\n"
|
||||||
@ -58,7 +58,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:107
|
#: plugin.py:121
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<cond1> [<cond2> ... <condN>]\n"
|
"<cond1> [<cond2> ... <condN>]\n"
|
||||||
@ -67,7 +67,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:118
|
#: plugin.py:133
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -77,7 +77,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:130
|
#: plugin.py:146
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -87,7 +87,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:142
|
#: plugin.py:159
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -97,7 +97,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:154
|
#: plugin.py:172
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -107,7 +107,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:166
|
#: plugin.py:185
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -117,7 +117,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:178
|
#: plugin.py:198
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -127,7 +127,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:190
|
#: plugin.py:211
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -137,7 +137,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:202
|
#: plugin.py:224
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -147,7 +147,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:214
|
#: plugin.py:237
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -157,7 +157,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:226
|
#: plugin.py:250
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -167,7 +167,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:238
|
#: plugin.py:263
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -177,7 +177,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:250
|
#: plugin.py:276
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
@ -187,7 +187,7 @@ msgid ""
|
|||||||
" "
|
" "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: plugin.py:262
|
#: plugin.py:289
|
||||||
#, docstring
|
#, docstring
|
||||||
msgid ""
|
msgid ""
|
||||||
"<item1> <item2>\n"
|
"<item1> <item2>\n"
|
||||||
|
@ -36,6 +36,16 @@ import supybot.callbacks as callbacks
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
try:
|
||||||
|
from supybot.i18n import PluginInternationalization
|
||||||
|
from supybot.i18n import internationalizeDocstring
|
||||||
|
_ = PluginInternationalization('Conditional')
|
||||||
|
except:
|
||||||
|
# This are useless functions that's allow to run the plugin on a bot
|
||||||
|
# without the i18n plugin
|
||||||
|
_ = lambda x:x
|
||||||
|
internationalizeDocstring = lambda x:x
|
||||||
|
|
||||||
# builtin any is overwritten by callbacks... and python2.4 doesn't have it
|
# builtin any is overwritten by callbacks... and python2.4 doesn't have it
|
||||||
def _any(iterable):
|
def _any(iterable):
|
||||||
for element in iterable:
|
for element in iterable:
|
||||||
@ -65,6 +75,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.exception('Uncaught exception in requested function:')
|
log.exception('Uncaught exception in requested function:')
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def cif(self, irc, msg, args, condition, ifcommand, elsecommand):
|
def cif(self, irc, msg, args, condition, ifcommand, elsecommand):
|
||||||
"""<condition> <ifcommand> <elsecommand>
|
"""<condition> <ifcommand> <elsecommand>
|
||||||
|
|
||||||
@ -81,6 +92,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.noReply()
|
irc.noReply()
|
||||||
cif = wrap(cif, ['boolean', 'something', 'something'])
|
cif = wrap(cif, ['boolean', 'something', 'something'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def cand(self, irc, msg, args, conds):
|
def cand(self, irc, msg, args, conds):
|
||||||
"""<cond1> [<cond2> ... <condN>]
|
"""<cond1> [<cond2> ... <condN>]
|
||||||
|
|
||||||
@ -92,6 +104,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply("false")
|
irc.reply("false")
|
||||||
cand = wrap(cand, [many('boolean'),])
|
cand = wrap(cand, [many('boolean'),])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def cor(self, irc, msg, args, conds):
|
def cor(self, irc, msg, args, conds):
|
||||||
"""<cond1> [<cond2> ... <condN>]
|
"""<cond1> [<cond2> ... <condN>]
|
||||||
|
|
||||||
@ -103,6 +116,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply("false")
|
irc.reply("false")
|
||||||
cor = wrap(cor, [many('boolean'),])
|
cor = wrap(cor, [many('boolean'),])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def cxor(self, irc, msg, args, conds):
|
def cxor(self, irc, msg, args, conds):
|
||||||
"""<cond1> [<cond2> ... <condN>]
|
"""<cond1> [<cond2> ... <condN>]
|
||||||
|
|
||||||
@ -114,6 +128,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply("false")
|
irc.reply("false")
|
||||||
cxor = wrap(cxor, [many('boolean'),])
|
cxor = wrap(cxor, [many('boolean'),])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def ceq(self, irc, msg, args, item1, item2):
|
def ceq(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -126,6 +141,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
ceq = wrap(ceq, ['anything', 'anything'])
|
ceq = wrap(ceq, ['anything', 'anything'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def ne(self, irc, msg, args, item1, item2):
|
def ne(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -138,6 +154,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
ne = wrap(ne, ['anything', 'anything'])
|
ne = wrap(ne, ['anything', 'anything'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def gt(self, irc, msg, args, item1, item2):
|
def gt(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -150,6 +167,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
gt = wrap(gt, ['anything', 'anything'])
|
gt = wrap(gt, ['anything', 'anything'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def ge(self, irc, msg, args, item1, item2):
|
def ge(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -162,6 +180,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
ge = wrap(ge, ['anything', 'anything'])
|
ge = wrap(ge, ['anything', 'anything'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def lt(self, irc, msg, args, item1, item2):
|
def lt(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -174,6 +193,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
lt = wrap(lt, ['anything', 'anything'])
|
lt = wrap(lt, ['anything', 'anything'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def le(self, irc, msg, args, item1, item2):
|
def le(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -186,6 +206,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
le = wrap(le, ['anything', 'anything'])
|
le = wrap(le, ['anything', 'anything'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def match(self, irc, msg, args, item1, item2):
|
def match(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -198,6 +219,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
match = wrap(match, ['something', 'something'])
|
match = wrap(match, ['something', 'something'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def nceq(self, irc, msg, args, item1, item2):
|
def nceq(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -210,6 +232,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
nceq = wrap(nceq, ['float', 'float'])
|
nceq = wrap(nceq, ['float', 'float'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def nne(self, irc, msg, args, item1, item2):
|
def nne(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -222,6 +245,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
nne = wrap(nne, ['float', 'float'])
|
nne = wrap(nne, ['float', 'float'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def ngt(self, irc, msg, args, item1, item2):
|
def ngt(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -234,6 +258,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
ngt = wrap(ngt, ['float', 'float'])
|
ngt = wrap(ngt, ['float', 'float'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def nge(self, irc, msg, args, item1, item2):
|
def nge(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -246,6 +271,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
nge = wrap(nge, ['float', 'float'])
|
nge = wrap(nge, ['float', 'float'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def nlt(self, irc, msg, args, item1, item2):
|
def nlt(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -258,6 +284,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
nlt = wrap(nlt, ['float', 'float'])
|
nlt = wrap(nlt, ['float', 'float'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
def nle(self, irc, msg, args, item1, item2):
|
def nle(self, irc, msg, args, item1, item2):
|
||||||
"""<item1> <item2>
|
"""<item1> <item2>
|
||||||
|
|
||||||
@ -269,6 +296,7 @@ class Conditional(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
irc.reply('false')
|
irc.reply('false')
|
||||||
nle = wrap(nle, ['float', 'float'])
|
nle = wrap(nle, ['float', 'float'])
|
||||||
|
Condition = internationalizeDocstring(Conditional)
|
||||||
|
|
||||||
Class = Conditional
|
Class = Conditional
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user