Setlocale? or how to change the language for php date?

hi there!

i was trying to change the language of the dates of my blog. sadly it didnt work with setlocale(), althou to be honest i have no idea how to use it correctly. any ideas on how i could accomplish this? i want of course my blog entries to read

  1. Dezember 2016 (german)

and not

  1. December 2016 (english)

thanks and cheers!

Open /inc/tags/blog.php
Find (2 times)

$date         = date($date_format, $date_mk);

Replace with

setlocale(LC_TIME, "de_DE");
$date = strftime('%d %B %Y', $date_mk);

setlocale() is ignored on my server but maybe it works on yours.


dear sir, it has worked, thanks! :slight_smile:

Nice one @dirk! Good tip :slight_smile:

Fixed in 5.0.2 as an option in settings! :smiley::+1: