Hello,

RoelS wrote:

R> could someone tell me if it's possible to change the locale on the system.
R> I tried the following code (which is from the manual):
R> 
R> setlocale ("LC_TIME", "C");
R> print (strftime ("%A in Finnish is "));

R> setlocale ("LC_TIME", "fi_FI");
R> print (strftime ("%A, in French "));

R> setlocale ("LC_TIME", "fr_FR");
R> print (strftime ("%A and in German "));

R> setlocale ("LC_TIME", "de_DE");
R> print (strftime ("%A.\n"));
R> 
R> all %A are in the same language.

<? setlocale(LC_TIME, "fr"); echo strftime("%H heures %M, le %d %B %Y") ?>

Works ok for me.
Note : setlocale(LC_TIME, ...) and not setlocale("LC_TIME", ...)

-- 
Olivier Mascia <[EMAIL PROTECTED]>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to