#24518 [Opn]: strftime() output not translated after setlocale()
| From: | sniper@php.net | Date: | Mon, 07 Jul 2003 14:37:48 +0000 |
| Subject: | #24518 [Opn]: strftime() output not translated after setlocale() | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355082@lists.php.net to get a copy of this message | ||
ID: 24518
Updated by: sniper@php.net
Reported By: phpspam at netebb dot com
Status: Open
-Bug Type: *Languages/Translation
+Bug Type: Documentation problem
Operating System: Windows 2000 SP2
PHP Version: 5.0.0b1 (beta1)
New Comment:
The locale names are not same under windows.
Use 'setlocale(LC_ALL, "spanish");' instead.
(that works fine for me under Windows XP and RH Linux)
Making this documentation issue.
Previous Comments:
------------------------------------------------------------------------
[2003-07-06 23:56:28] phpspam at netebb dot com
Description:
------------
<?php
setlocale(LC_ALL, 'es_ES');
echo strftime("%A %e %B %Y");
?>
works fine on Debian, but fails on Windows 2000 SP2.
gettext() *does* work in Windows though, so I know it's not a
configuration issue (i.e., extension=php_gettext.dll).
I've tested this with both php 5.0.0 and php 4.3.2.
Cheers,
Ross
Reproduce code:
---------------
<?php
setlocale(LC_ALL, 'es_ES');
echo strftime("%A %e %B %Y");
?>
Expected result:
----------------
domingo 6 julio 2003
Actual result:
--------------
Sunday July 2003
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24518&edit=1