Commit Graph

2823 Commits

Author SHA1 Message Date
Valentin Lorentz
5629b4585c Fix bolding for help strings (because of i18n) 2010-12-22 18:15:46 +01:00
Valentin Lorentz
83aca7c651 Merge branch 'testing' 2010-12-22 18:12:28 +01:00
Valentin Lorentz
49dfa69b91 Fix actually compatibility with non-ssl envirronments 2010-12-12 14:33:36 +01:00
Valentin Lorentz
a58e270516 Fix issue with Pypy 2010-12-12 14:22:44 +01:00
Valentin Lorentz
96ea659030 Add SSL support for Socket driver 2010-12-09 19:33:35 +01:00
Valentin Lorentz
f2a0b60e79 Fix unicode bug 2010-11-28 17:47:38 +01:00
Valentin Lorentz
3fafd31f51 Remove redundant spaces in src/i18n.py 2010-11-19 17:00:55 +01:00
Valentin Lorentz
3589f15278 Merge branch 'testing' 2010-11-14 14:36:21 +01:00
Valentin Lorentz
5300abbd5d Merge branch 'l10n-fr' into testing 2010-11-14 14:36:15 +01:00
Valentin Lorentz
e7cf7788be Merge branch 'i18n' into l10n-fr 2010-11-14 14:36:10 +01:00
Valentin Lorentz
0998c2a43f Fix bug in src/commands.py (forgotten comma) 2010-11-14 14:36:02 +01:00
Valentin Lorentz
211be44b9c Merge branch 'testing' 2010-11-11 12:03:12 +01:00
Valentin Lorentz
4ea359d503 Merge branch 'l10n-fr' into testing 2010-11-11 12:03:04 +01:00
Valentin Lorentz
827ff7df5b Merge branch 'i18n' into l10n-fr 2010-11-11 12:02:57 +01:00
Valentin Lorentz
323ffe1a1f i18n: Fix internationalization problems 2010-11-11 12:01:56 +01:00
Valentin Lorentz
713aae9017 Change the version suffix 2010-11-02 14:06:06 +01:00
Valentin Lorentz
43c105a6d3 Merge branch 'l10n-fr' into testing 2010-11-01 20:18:56 +01:00
Valentin Lorentz
04f25ce0de Merge branch 'i18n' into l10n-fr 2010-11-01 20:18:50 +01:00
Valentin Lorentz
02cb15d522 Remove the 'testInternationalization' 2010-11-01 20:18:44 +01:00
Valentin Lorentz
fbbfd683b4 Merge branch 'l10n-fr' into testing 2010-11-01 20:15:21 +01:00
Valentin Lorentz
589753fe9d Merge branch 'i18n' into l10n-fr 2010-11-01 20:15:16 +01:00
Valentin Lorentz
31d9d47751 Remove debug message 2010-11-01 20:15:02 +01:00
Valentin Lorentz
5679499c43 Merge branch 'l10n-fr' into testing 2010-11-01 19:57:27 +01:00
Valentin Lorentz
17fc98a3ee Merge branch 'i18n' into l10n-fr 2010-11-01 19:57:23 +01:00
Valentin Lorentz
c0ff3c3f92 Bug fix in i18n.py (decorated commands without docstring raise an error) 2010-11-01 19:57:18 +01:00
Valentin Lorentz
27ef96a78a Merge branch 'l10n-fr' into testing 2010-11-01 19:53:58 +01:00
Valentin Lorentz
249eace2cf Merge branch 'i18n' into l10n-fr
Conflicts:
	src/i18n.py
2010-11-01 19:52:56 +01:00
Valentin Lorentz
79930a7435 Bug fix in src/i18n.py 2010-11-01 19:48:45 +01:00
Valentin Lorentz
52b701526d Merge branch 'l10n-fr' into testing 2010-11-01 15:02:05 +01:00
Valentin Lorentz
22fa9f4098 Merge branch 'i18n' into l10n-fr 2010-11-01 15:01:57 +01:00
Valentin Lorentz
30a1ca06b2 Fix the @Misc help formatting
Stop removing the \n in the translated docstrings
2010-11-01 15:01:50 +01:00
Valentin Lorentz
e4256ff8c7 Merge branch 'l10n-fr' into testing 2010-11-01 14:35:17 +01:00
Valentin Lorentz
56f2c38137 Merge branch 'i18n' into l10n-fr
Conflicts:
	src/i18n.py
2010-11-01 14:34:57 +01:00
Valentin Lorentz
1f4b3b83e1 Make the src/i18n.py code cleaner 2010-11-01 14:33:43 +01:00
Valentin Lorentz
0410cf3d0d Merge branch 'l10n-fr' into testing 2010-11-01 11:49:11 +01:00
Valentin Lorentz
ddb3dd5a50 Merge branch 'i18n' into l18n-fr 2010-11-01 11:49:04 +01:00
Valentin Lorentz
a2c8c613db Bug fix (didn't keep any beginning or ending space) 2010-11-01 11:47:19 +01:00
Valentin Lorentz
4dcd7f7fb4 Bug fixes (mainly the &config help internationalization) 2010-11-01 11:42:33 +01:00
Valentin Lorentz
51edf7325c Merge branch 'l10n-fr' into testing 2010-10-31 18:37:15 +01:00
Valentin Lorentz
198f8267eb Bug fixes 2010-10-31 18:36:33 +01:00
Valentin Lorentz
4c03aef9a6 Internationalize a string in conf.py 2010-10-31 13:41:36 +01:00
Valentin Lorentz
676c08ad8e Fix possible truncation of messages
Possible bug with languages which has a long translation for '(XX more messages)'.
2010-10-31 13:35:23 +01:00
Valentin Lorentz
6dfd334344 Merge branch 'l10n-fr' into testing 2010-10-31 11:32:00 +01:00
Valentin Lorentz
283a026449 Add the i18n test in src/test.py 2010-10-31 11:30:04 +01:00
Valentin Lorentz
27bb53b560 Merge branch 'l10n-fr' into testing 2010-10-30 21:41:44 +02:00
Valentin Lorentz
4a516c5f46 Makes the code of i18n.py cleaner
More comments; docstrings; remove the % auto-handling (useless).
2010-10-30 21:41:25 +02:00
Valentin Lorentz
3ea8115095 Internationalize src/utils/str.py and modify src/i18n.py to fit this changes 2010-10-30 21:10:49 +02:00
Valentin Lorentz
f3528c57d4 Merge branch 'l10n-fr' into testing 2010-10-30 12:49:57 +02:00
Valentin Lorentz
5150c4ef60 Now tests if a plugin has the _ object before using it 2010-10-30 12:49:43 +02:00
Valentin Lorentz
5f2699b2c0 Merge branch 'l10n-fr' into testing 2010-10-30 12:15:09 +02:00
Valentin Lorentz
b85d289bbb Fix wrong method name 2010-10-30 12:14:54 +02:00
Valentin Lorentz
5e09a9c887 Merge branch 'l10n-fr' into testing 2010-10-30 12:11:29 +02:00
Valentin Lorentz
6737424bc6 Shorten PluginInternationalisation.get* in src/i18n.py 2010-10-29 15:33:36 +02:00
Valentin Lorentz
ec6a267c09 Internationalize more functions in src/utils/str.py 2010-10-29 15:31:36 +02:00
Valentin Lorentz
e8bc966827 Add locale abitrary code
Add the capability for Supybot to load code depending on the locale
src/utils/str.py now imports pluralize and depluralize from this code
2010-10-28 17:28:27 +02:00
Valentin Lorentz
97f51ab08e Fix i18n bug for global Supybot 2010-10-28 16:42:52 +02:00
Valentin Lorentz
b7651b06a1 Merge branch 'l10n-fr' into testing 2010-10-28 15:45:51 +02:00
Valentin Lorentz
f3a579f3da Add the '<empty>' feature to nItems, and changed ChannelStats localization in order to use it as bug fixer 2010-10-28 15:18:06 +02:00
Valentin Lorentz
44c3eb1825 Changes version 2010-10-24 13:54:35 +02:00
Valentin Lorentz
8be4aaeff1 Merge branch 'readability' 2010-10-23 10:38:52 +02:00
Valentin Lorentz
5e2e858ac5 Removed debug information 2010-10-20 19:01:22 +02:00
Valentin Lorentz
da9a1bfb70 Internationalize questions.py 2010-10-20 18:33:39 +02:00
Valentin Lorentz
6b26861c23 Internationalize callbacks.py, commands.py, and conf.py ; and generated the messages.pot 2010-10-20 18:27:58 +02:00
Valentin Lorentz
df3d096ab1 Modified i18n.py, in order to handle internationalization before conf is loaded 2010-10-20 18:26:52 +02:00
Valentin Lorentz
f1d5d9d832 Fix a pygettext warning 2010-10-20 10:27:31 +02:00
Valentin Lorentz
77d0296054 Merge branch 'master' into readability 2010-10-20 09:49:59 +02:00
Valentin Lorentz
597cec5af7 Merge branch 'master' into i18n 2010-10-20 09:48:59 +02:00
Valentin Lorentz
386c8562ea Added myself in the author list 2010-10-20 09:48:49 +02:00
Valentin Lorentz
e556fbde2e Added %S to format() 2010-10-16 11:37:10 +02:00
Valentin Lorentz
4a5b98507f Revert 9a2eea4272 2010-10-10 16:54:46 +02:00
Valentin Lorentz
d156ae7474 Add the configuration variable help reloading 2010-10-10 16:46:55 +02:00
Valentin Lorentz
b44401dd1c Remove a forgotten debug print 2010-10-10 16:35:31 +02:00
Valentin Lorentz
9a2eea4272 Change the version name 2010-10-10 16:34:34 +02:00
Valentin Lorentz
a8319d3c6f Remove debug message and internationalize config.py in ChannelStats 2010-10-10 15:11:41 +02:00
Valentin Lorentz
a750fe6a2e Fix the internationalisation problem for the docstrings 2010-10-10 14:45:25 +02:00
Valentin Lorentz
50acd3d8d9 Creating the internationalization module and internationalize/localize ChannelStats into French 2010-10-09 11:36:22 +02:00
James Vega
26a458b9ec Merge branch 'maint/0.83.4' 2010-09-20 19:46:18 -04:00
James Vega
0fd6a84632 Use self.error() instead of raise for BooleanRequiredFalseOnWindows.
Closes: Sf#3070285
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-09-20 18:34:07 -04:00
James Vega
0abe22f5d1 Merge branch 'maint/0.83.4' 2010-09-08 23:50:35 -04:00
James Vega
b0575cec88 Handle changes to fnmatch.translate in Python 2.6
Define utils.python.glob2re based on the Python version being used.
Use glob2re in Todo and Note plugins.

Closes: Sf#3059292
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-09-08 23:31:01 -04:00
James Vega
e7ef97e529 Ensure channel-specific reply.whenNotAddressed works.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 166f32dcb0)
2010-08-24 19:52:59 -04:00
James Vega
8d5e4ba624 Twisted: Send all available ircmsgs and reduce delay between checks
All ircmsgs that takeMsg will return should be processed each time
checkIrcForMsgs is called since there may be multiple available in the
fastqueue.

Reduced the time between calls of checkIrcForMsgs so the delay between
normally queued ircmsgs stays close to the configured throttleTime.

Closes: Sf#3018148
(cherry picked from commit adc5d62bbf)
2010-08-24 19:49:54 -04:00
James Vega
ff760d1c69 Socket: Ensure driver is flagged as disconnected after a socket error.
Users were occasionally hitting a situation where the socket had errored,
causing a reconnect, but the socket wasn't closed nor the driver marked as
disconnected.  This resulted in run() continuing to try and use the driver,
which would cause another error, schedule another reconnect, log an error, ad
infinitum.

Closes: Sf#2965530

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit a278d17f2b)
2010-08-24 19:49:38 -04:00
James Vega
a6857ce9bf utils/web.py: Only try catching socket.sslerror if built with SSL support
Closes: Sf#2998820

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit f03a3f6c85)
2010-08-24 19:49:30 -04:00
James Vega
fa199022e1 Make registry.Regexp.error mimic registry.Value.error
Regexp.error can't directly call Value.error because it's providing extra
information, so it needs to build the InvalidRegistryValue exception itself
and raise it.

Closes: Sf#2985241

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit ef8bd817e8)
2010-08-24 19:44:31 -04:00
James Vega
8d94ff743c Include hostmasks in JOIN, PART, QUIT logs.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 4a9596608a)
2010-08-24 19:44:10 -04:00
James Vega
e13d3d6943 Decode/encode as 'string_escape' when (de)serializing the registry.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-08-24 19:43:24 -04:00
James Vega
455b5631bc Update plugins to ignore all non-ACTION CTCP messages.
Also update commands.urlSnarfer to do the same, which allows us to revert
"Don't bother snarfing URLs from non-Action CTCP messages."

This reverts commit 3282e3407e.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 288d7c6e02)
2010-08-24 19:42:11 -04:00
James Vega
2a18d07a2e Default to strict RFC compliance.
It's better to force people to use an RFC nick and change it after they
connect than to let non-RFC nicks get used and not be able to connect to the
network.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 07e283f450)
2010-08-24 19:26:13 -04:00
James Vega
9ddf07ce97 Allow Banmask.makeBanmask to work when dynamic.channel is None.
This gives back the ability to generate a banmask based on the global banmask
settings instead of per-channel settings.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 8a98653d3b)
2010-08-24 19:23:25 -04:00
James Vega
f0852a9e45 utils.web: Provide access to the raw httpUrlRe/urlRe strings
Using the compiled regexps for a PluginRegexp method's __doc__ doesn't work.

Closes Sourceforge #2879862

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 25fc2de643)
2010-08-24 19:14:58 -04:00
James Vega
3e984c71d0 Clarify databases.types.cdb.maximumModifications' help and use a proper type.
The code expects a float between 0 and 1 inclusive but was simply using
registry.Float.  registry.Probability matches the behavior we want.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit e9a896c736)
2010-08-24 19:12:44 -04:00
James Vega
5a0f96fc8e Reply with an error when getBanmask doesn't have a valid channel.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 459bc616b1)
2010-08-24 19:12:21 -04:00
James Vega
bdf9e8836b Ensure getBanmask has a channel variable as per makeBanmask's requirement
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 260570bd4f)
2010-08-24 19:12:09 -04:00
Ricky Zhou
6299ef5c22 Account for negative times in timeElapsed.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit aa2337791a)
2010-08-24 19:02:16 -04:00
James Vega
024a77af48 Updated to 0.83.4.1+git.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 332a614eef)
2010-08-24 18:59:46 -04:00
James Vega
166f32dcb0 Ensure channel-specific reply.whenNotAddressed works.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-07-26 19:48:37 -04:00
James Vega
c10d964604 Elide ignored replies from nested command output.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-06-24 00:33:04 -04:00
James Vega
adc5d62bbf Twisted: Send all available ircmsgs and reduce delay between checks
All ircmsgs that takeMsg will return should be processed each time
checkIrcForMsgs is called since there may be multiple available in the
fastqueue.

Reduced the time between calls of checkIrcForMsgs so the delay between
normally queued ircmsgs stays close to the configured throttleTime.

Closes: Sf#3018148
2010-06-18 20:33:43 -04:00
James Vega
a278d17f2b Socket: Ensure driver is flagged as disconnected after a socket error.
Users were occasionally hitting a situation where the socket had errored,
causing a reconnect, but the socket wasn't closed nor the driver marked as
disconnected.  This resulted in run() continuing to try and use the driver,
which would cause another error, schedule another reconnect, log an error, ad
infinitum.

Closes: Sf#2965530

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2010-05-24 23:36:29 -04:00