Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- setlocale() has no effect
- Gustaf Liljegren
August 15, 2004, 4:06 am
rate this thread
$unix_time = strtotime($dt_created);
setlocale(LC_TIME, 'sv', 'sve', 'swe', 'sv_SE');
$time = strftime('%A den %d %B', $unix_time);
No matter what I put in setlocale(), I get English weekdays and months.
I'm using PHP 4.3.8 on a UNIX computer, but I'm not in control of the
Re: Re: setlocale() has no effect
"Gustaf Liljegren" wrote:
> Michael Fesser wrote:
> > Is a Swedish locale installed on that machine?
> Iím not sure about that, and frankly, I donít know how to
> find out. Can
> I see it in phpinfo()? Thanks for helping.
If no answers, the function can be easily written.
http://www.dbForumz.com / This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-setlocale-effect-ftopict139719.html
Visit Topic URL to contact author (reg. req'd). Report abuse: