* Thus wrote Mauricio Cuenca ([EMAIL PROTECTED]):
> 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 ???

In theory, you can install the locale language in your home dir:

  /path/to/your/homedir/locale/es_ES*

then set the environment to look there instead:
  setenv('PATH_LOCALE', '/path/to/your/homedir');

and then the setlocale and strftime should work.

Of course this is theory.


Curt
-- 
"My PHP key is worn out"

  PHP List stats since 1997: 
    http://zirzow.dyndns.org/html/mlists/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to