#24518 [Opn->Csd]: strftime() output not translated after setlocale()
| From: | betz@php.net | Date: | Tue, 08 Jul 2003 19:35:53 +0000 |
| Subject: | #24518 [Opn->Csd]: strftime() output not translated after setlocale() | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969355107@lists.php.net to get a copy of this message | ||
ID: 24518
Updated by: betz@php.net
Reported By: phpspam at netebb dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Windows 2000 SP2
PHP Version: 5.0.0b1 (beta1)
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Tips for supported locale strings on Windows can now be found in the
docs. Changes made can be viewed here:
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/setlocale.xml?sbt=1&login=2&r1=1.10&r2=1.11&ty=u
Previous Comments:
------------------------------------------------------------------------
[2003-07-07 09:37:47] sniper@php.net
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.
------------------------------------------------------------------------
[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