[PATCH] pyblosxom localised
João Miguel Neves <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Attached is a patch to allow localised versions of pyblosxom. I'm using it for a portuguese blog in http://blog.silvaneves.org/ What the patch does: * corrects an import of a non-existent file in contrib/plugins/comments/plugins/xmlrpc_pingback.py * corrects contrib/plugins/conditionalhttp.py to always return canonical values in Last-Modified * changes contrib/plugins/pycalendar.py to use the config option calendar_weekdays as representation of the days of the week * changes Pyblosxom/entries/base.py to use config option blog_date to format the output of strftime() * changes Pyblosxom/renderers/blosxom.py to use config option blog_encoding in the Content-Type header * adds function UTC_in_English to Pyblosxom/tools.py for conditionalhttp.py * change web/pyblosxom.py to use config option blog_locale and blog_encoding * options added to config.py: blog_locale blog_date calendar_weekdays (for pycalendar.py) Why you should be careful with the patch: month2num in Pyblosxom/tools.py depends on the portuguese locale web/config.py is my configuration file - I thought a working example would do better than a template one I hope this can be useful to you and others. -- João Miguel Neves
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBIPQgGFkMfesLN9wRAkE2AJ0TG37e8hXxBFIqeVuFvFRCkxgpHQCfekWT U5Kp/DSyDBeQjZTyno5Bfso= =pf4f -----END PGP SIGNATURE-----