picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 615 forks source link

How to change locale #552

Closed Discostu36 closed 4 years ago

Discostu36 commented 4 years ago

I'm not sure how to set my locale in Pico. At the moment all weekdays and months are written in English. If I understand it correctly, PHP would write them in German with the command setlocale (LC_TIME, "de_DE"); But how can i do so in Pico?

PhrozenByte commented 4 years ago

It's a PHP setting, i.e. required changing your php.ini. However, @asdfuser opened a pull request (#546) to include a locale config option in Pico's config/config.yml that wasn't released yet. I just released Pico v2.1.3 which includes said option.

Discostu36 commented 4 years ago

I don't think my webhoster allows me to edit php.ini, so this is perfect timing. Will try it out, thanks!

Discostu36 commented 4 years ago

It works, thanks again!