Setlocale unter Windows - Warum Monatsname in englisch?
Hi Leute,
auf einem IIS mit PHP5 erhalte ich mit
die folgende Ausgabe:
Die Einstellung von Deutsch hat anscheinend funktioniert - warum wird der Monat aber in englisch ausgegeben?
Bei Wochentagen tritt das Problem auch auf.
ciao
dirk
auf einem IIS mit PHP5 erhalte ich mit
$loc_de = setlocale(LC_ALL, 'deu_deu');
$nMonat=date("m");
$cMonat=date("F");
echo "$nMonat - $cMonat <br>";
echo "strftime nach setlocale ist " . strftime("%c") . "<br><br>";
echo "Die momentane Ländereinstellung ist " . $loc_de;
die folgende Ausgabe:
03 - March
strftime nach setlocale ist 16.03.2010 17:27:48
Die momentane Ländereinstellung ist German_Germany.1252
Die Einstellung von Deutsch hat anscheinend funktioniert - warum wird der Monat aber in englisch ausgegeben?
Bei Wochentagen tritt das Problem auch auf.
ciao
dirk
Please also mark the comments that contributed to the solution of the article
Content-Key: 138397
Url: https://administrator.de/contentid/138397
Printed on: April 20, 2024 at 00:04 o'clock
5 Comments
Latest comment
http://www.php.net/manual/en/function.strftime.php
Month and weekday names and other language-dependent strings respect the current locale set with setlocale().