Page 1 of 1

setlocale problem

Posted: Sat Jan 14, 2012 5:14 am
by nita
Hi

What i'm trying to do is to have posibility to display day names in other languages.
Code below works perfect with english, but dosent seems to work with dutch or french for instance. Still displays in english.

Code: Select all


setlocale(LC_TIME, 'NL_nl');
	$datestamp=$_POST['datestamp'];

	echo "$datestamp";

echo strftime('%A %e %B %Y ', strtotime($datestamp));

$weekday = date('l', strtotime($datestamp)); 
echo $weekday;

Missing something here ?? Can someone help me with it?

Thank you very much in advance

Re: setlocale problem

Posted: Sat Jan 14, 2012 2:00 pm
by Christopher
Are you sure you have the NL_nl data installed? Have you tried just nl? What is the return value for setlocale() ?