sebastian
sebastian

Reputation: 488

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.

Upvotes: 1

Views: 739

Answers (2)

Brainsucker92
Brainsucker92

Reputation: 359

If you have a non-standard theme installed, go to the folder of that theme and navigate to the templates folder. There are a lot of different html files. If you want to translate the generated text, like "read more" or "Other articles", open the index.html file inside the template folder and search for the text you want to translate, replace it with yours and regenerate your page. Be cautious not to break the syntax of the template file, tho.

Upvotes: 1

Tiger-222
Tiger-222

Reputation: 7150

Did you try LOCALE?

LOCALE = ('de_DE', 'de')

See Date format and locale for more informations.

Upvotes: 4

Related Questions