ametaireau/pelican — pull request #215 by farseerfc (2012-02-26 12:48:28+00:00)
Title: Changing LOCALE according to lang of current page in DATE_FORMAT

As I wrote in https://github.com/ametaireau/pelican/issues/213

If self.data_format is a tuple, then it will override current locale using self.data_format[0] . This fix should not break any existing configure file.

My settings now:

``` python
DATE_FORMATS = {
'en':('usa','%a, %d %b %Y'),
'zh':('chs','%Y-%m-%d, %a'),
'jp':('jpn','%Y/%m/%d (%a)'),
}
```

Which generate a date like this in English page:
Fri, 24 Feb 2012
And like this in Japanese page:
2012/02/24 (金)