From 2ace30cdb0a80e481c9acc749c9afa0f403d7443 Mon Sep 17 00:00:00 2001 From: Russ Webber Date: Sun, 21 Jul 2013 13:31:11 +0800 Subject: [PATCH] fix it not setting the default locale If LOCALE was not specified in the settings file it would default to [] insted of [''], where '' is used by locale.setlocale to mean the user's default locale. --- pelican/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/settings.py b/pelican/settings.py index 01203504..5c1bd8f3 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -90,7 +90,7 @@ DEFAULT_CONFIG = { 'MD_EXTENSIONS': ['codehilite(css_class=highlight)', 'extra'], 'JINJA_EXTENSIONS': [], 'JINJA_FILTERS': {}, - 'LOCALE': [], # defaults to user locale + 'LOCALE': [''], # defaults to user locale 'DEFAULT_PAGINATION': False, 'DEFAULT_ORPHANS': 0, 'DEFAULT_METADATA': (),