Search code examples
pythonblogspelican

How to translate generated language in Pelican?


I am setting up a new Pelican blog and stumbled upon a bit of a problem. I am German, the blog is going to be in german so I want the generated text (dates, 'Page 1/5'...) to be in german. (In my post date I include the weekday)

In pelicanconf.py I tried
DEFAULT_LANG = u'ger' and
DEFAULT_LANG = u'de' and
DEFAULT_LANG = u'de_DE'
but I only get everything in en.


Solution

  • Did you try LOCALE?

    LOCALE = ('de_DE', 'de')
    

    See Date format and locale for more informations.