Problem with setlocale (SOLVED)
Posted by: psn (---.tbcn.telia.com)
Date: May 11, 2008 04:54PM

Hi,

I have this script:

if($lang == "se"winking smiley{
setlocale(LC_ALL, 'sv_SE.ISO_8859-1'); echo '(' . ucfirst(strftime("%a) %Y-%m-%d %H:%M", $date));   
} else {
setlocale(LC_ALL, ''); echo ucfirst(strftime("(%a) %Y-%m-%d %H:%M", $date)); 
}
which works fine when I have it on a linuxserver but when I have the same on the wampserver on windows I dont get the correct shortname for the swedish days. I get the oposite meaning I get the correct when $lang is NOT se. Is there any settings in the PHP which drives this or what?

Found solution here: [www.zen-cart.com]

Regards/Per



Edited 3 time(s). Last edit at 05/12/2008 10:46PM by psn.

Options: ReplyQuote


Sorry, only registered users may post in this forum.