Re: Patch to add support for locales (for localized dates)
Martijn van de Streek <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 03 Sep 2006, Martijn van de Streek wrote:
> If setting the locale fails, it will fail silently. This should probably
> be logged somewhere, to reduce "I set the locale in the config and it
> doesn't work!"-requests.
>
> If a locale is set, it's temporarily disabled for 'special' things, like
> generating RFC-compliant date fields (which should be in English ('C') ).
>
> Setting the locale affects the following things (as far as I can tell,
> I'm not too familiar with PyBlosxom guts yet ;))
I've discovered that the locale isn't being set soon enough. It needs to
be done _before_ tools is first imported (that, or num2month needs to be
generated later, after the locale has been set).
This breaks the 'month/day' urls.
Expect a new version of this patch later today.
Martijn
--
Sorry isn't an excuse when you do something stupid on purpose.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pyblosxom-devel mailing list
Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
signature.asc
(application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFA686Dafvoz+l4DERAmhLAJ4gr7bUHxlJ1+LzG48qK4tQOv4V2wCggcA/ fsJQoHH+sITn1Z+Kt7MgF6E= =KNKK -----END PGP SIGNATURE-----