Commit Graph

58 Commits

Author SHA1 Message Date
Valentin Lorentz
175a646500 Merge pull request #914 from nyuszika7h/time-workaround-python-bug
Time.time: Work around a Python bug
2014-11-26 08:19:07 +01:00
nyuszika7h
da2cec32eb Time.time: Work around a Python bug
There is a bug [1] in older versions of Python (reproduced up to 2.7.5
and 3.2.3) where time.strftime('%z') would always give '+0000' if it's
given an argument. It's closed as "not a bug", but appears to be fixed
in recent versions. To work around this, datetime and dateutil is used
now when available.

[1] http://bugs.python.org/issue1493676
2014-11-24 22:09:38 +01:00
nyuszika7h
b697536db5 Time.tztime: Don't display microseconds
There's no reason for displaying them under most circumstances that I
can think of.
2014-11-24 19:00:45 +01:00
Mikaela Suomalainen
0ce8ef8299 Time: update messages.pot & l10n-fi
I translated IANA Time Zone Database too, because I tried googling for
my translation and the first results are about correct thing (even if
Google first suggests wrong spelling which (when clicked) suggests two
other wrong spellings…

[SKIP CI]
2014-07-23 18:31:27 +03:00
Mikaela Suomalainen
b8193e0c88 Time: tztime: mention IANA TZ Database in help
https://www.iana.org/time-zones uses the spelling IANA Time Zone Database,
so I use it too.
2014-07-23 18:21:23 +03:00
Valentin Lorentz
2ea9e7187f Time & User & Web: Fix metadata of translation files. 2014-06-08 12:16:52 +02:00
Mikaela Suomalainen
fc81013be5 Mass rename README.txt --> README.md .
[SKIP CI]
2014-06-06 12:42:33 +02:00
Valentin Lorentz
5f306a8c74 Fix neutral pronouns. 2014-04-11 21:56:42 +00:00
Mikaela Suomalainen
3a2b01d517 PluginDownloader: update l10n-fi.
The typo fix edition.
2014-03-22 16:38:16 +02:00
Mikaela Suomalainen
9eec5c0ab5 Ctcp: update l10n-fi. 2014-03-22 16:16:52 +02:00
Mikaela Suomalainen
bf2640ddb8 User: update l10n-fi. 2014-03-22 15:44:26 +02:00
Mikaela Suomalainen
8377029993 Time: update l10n-fi. 2014-03-22 14:50:46 +02:00
Mikaela Suomalainen
aa59a98767 Aka: add l10n-fi. 2014-03-22 12:39:48 +02:00
Mikaela Suomalainen
0d62257d79 update messages.pot files && Unix: update l10n-fi. 2014-03-22 12:22:54 +02:00
Mikaela Suomalainen
f88e8e20b9 My name is Mikaela!
Thanks @nyuszika7h :) ☺
2014-03-22 12:01:11 +02:00
Valentin Lorentz
fe57cdb4dc ChannelStats & MessageParser & PluginDownloader & RSS & User: Update l10n-fr. 2014-01-26 20:45:27 +01:00
Valentin Lorentz
736c615605 Time: Update l10n-fr. 2014-01-26 20:45:27 +01:00
Valentin Lorentz
a3dbece402 All plugins: Update .pot files and rename Supybot-fr to Limnora in French translation files. 2014-01-26 20:45:27 +01:00
Valentin Lorentz
9ff1483da2 Time: Make argument to @at optional. (Replacement for GH-533 that does not need nesting.) 2013-12-28 23:05:23 +00:00
Valentin Lorentz
13d2746454 ChannelStats & Conditionnal & Format & Karma & Limiter & MessageParser & Misc & Network & PluginDownloader & Seen & ShrinkUrl & Status & String & Time & Topic & User & Web: Update messages.pot. 2013-11-27 00:02:05 +01:00
Valentin Lorentz
b8abbd1e36 Make dependency on python-dateutil optionnal. 2013-11-24 14:47:26 +00:00
Valentin Lorentz
40675ffdfa Merge remote-tracking branch 'supybot/master' into testing
Conflicts:
	plugins/Admin/plugin.py
	plugins/BadWords/config.py
	plugins/Filter/plugin.py
	plugins/Google/plugin.py
	plugins/Math/plugin.py
	plugins/Misc/plugin.py
	plugins/Note/plugin.py
	plugins/RSS/plugin.py
	plugins/Seen/test.py
	plugins/ShrinkUrl/config.py
	plugins/ShrinkUrl/plugin.py
	plugins/ShrinkUrl/test.py
	plugins/Status/plugin.py
	plugins/String/config.py
	plugins/String/plugin.py
	plugins/Time/plugin.py
	plugins/Todo/plugin.py
	plugins/Web/plugin.py
	plugins/__init__.py
	scripts/supybot-botchk
	setup.py
	src/__init__.py
	src/callbacks.py
	src/commands.py
	src/conf.py
	src/drivers/Socket.py
	src/ircdb.py
	src/irclib.py
	src/ircutils.py
	src/questions.py
	src/registry.py
	src/schedule.py
	src/test.py
	src/utils/file.py
	src/utils/gen.py
	src/utils/net.py
	src/utils/web.py
	src/world.py
2013-08-24 11:28:29 +02:00
Valentin Lorentz
517ee1cde6 Time: Fix import on Python 3. 2013-07-27 11:39:30 +00:00
Valentin Lorentz
6cbc6a14dd Rename all 'locale' directories to 'locales'.
Firstly, these directories contains more than one locale. Secondly, it conflicts with the 'locale' python module.
2012-12-26 15:43:35 +01:00
James McCoy
198688eab4 Import external dateutil module
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-17 22:15:52 -04:00
James McCoy
52e71edacc Time: Remove dateutil and add it to install_requires
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-10 22:28:34 -04:00
Valentin Lorentz
d71b1a815a Merge pull request #341 from Mkaysi/l10n-de
Update l10n-de.
2012-04-27 08:56:40 -07:00
Mika Suomalainen
71ccf21d25 Time: update l10n-hu. 2012-04-27 17:55:51 +02:00
Mika Suomalainen
9598a9f03e Time: update l10n-de. 2012-04-27 15:35:57 +03:00
skizzhg
418d1b921f AutoMode & Channel & Time & Unix: Update l10n-it. 2012-04-23 21:52:02 +02:00
Valentin Lorentz
a40cf1c82f Time: Fix redundant error when pytz is not installed 2012-04-05 04:28:57 +00:00
skizzhg
aedfc07762 Update l10n-it. 2012-03-16 18:28:05 +01:00
Mika Suomalainen
5108a60449 Time: update l10n-fi. 2012-03-15 20:48:50 +08:00
Valentin Lorentz
808ed5cd9b Update l10n-fr. 2012-03-15 13:44:43 +01:00
Valentin Lorentz
46a890417a Update all plugin .pot files. 2012-03-11 21:06:19 +00:00
nyuszika7h
99de7b2347 Time: Add l10n-hu. 2011-11-06 21:25:11 +08:00
Florian Besser
f26af18dcc Time: Add l10n-de 2011-10-30 19:05:42 +01:00
Mika Suomalainen
f76c7e33dc Time: Add l10n-fi. 2011-10-25 16:28:18 +03:00
Tanner
e0625fa8a1 Time: Added a description to README.txt 2011-09-12 17:34:14 -05:00
Valentin Lorentz
cebf67fe89 Time: Fix redundant (and un-user-friendly) error message. 2011-08-18 11:07:26 +02:00
Valentin Lorentz
8d6ce790e8 Time: Remove useless/bad/wrong error message from @tztime. 2011-08-12 13:07:40 +02:00
skizzhg
7e88bb1ce3 Update l10n-it for many plugins. 2011-08-07 11:16:04 +02:00
skizzhg
9d5365248e Admin & ChannelLogger & Dict & Maths & News & Seen & Status & Time & Todo & URL: Add Italian translation 2011-06-21 19:40:01 +02:00
Valentin Lorentz
0d7e3d3759 (Re)generate all plugin's .pot file 2011-02-26 10:40:50 +01:00
Valentin Lorentz
d29ca0a227 Import Time plugin from Supybot-plugin repo 2011-01-22 09:54:53 +01:00
Valentin Lorentz
df3459dc3b Localize Sucess, Time, Todo, Topic, Url, Unix, User, Utilities, and Web into French 2010-10-30 12:10:31 +02:00
Valentin Lorentz
6a9a8d81b8 Internationalize Time, Todo, Topic, URL, Unix, Utilities, and Web 2010-10-20 09:39:44 +02:00
James Vega
5fda0df4a9 Update dateutil to latest version and include all files
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-11 12:16:28 -04:00
James Vega
fea4cc2962 Fix setup.py and add local/__init__.py so Time can be installed
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-11 11:23:49 -04:00
Jeremy Fincher
279c00a925 Fixed dateutil to use the "local" subdirectory format. 2009-05-08 12:36:37 -05:00