Setlocale() not working
| From: | Mauricio Cuenca | Date: | Fri, 24 Oct 2003 15:05:05 +0000 |
| Subject: | Setlocale() not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167435@lists.php.net to get a copy of this message | ||
Hello,
I'm trying to print the full date in spanish using the following lines:
setlocale(LC_TIME, 'es_ES');
strftime(DATE_FORMAT_LONG, mktime(0, 0, 0, 12, 31, 2002));
But my sysadmin tells me that the server doesn't have the spanish locale
installed. Is there a way that I can write the date in other language
without the need to harcode the weekday names ??? Using only the strftime
function ???
Thanks,
____________________
Mauricio Cuenca