setlocale() only works with xx_XX lang strings
Oliver Schulze L.
oliver@samera.com.py
Thu, 20 Sep 2001 03:24:45 -0400
Hi,
I have
imp 2.2.6
horde 1.2.6
php-4.0.4pl1-7
redhat 7.0
and I'm using the spanish language and the setlocale() function of php
only works
if the language string is in the form: xx_XX
In the spanish case this is: es_ES
In IMP, the language string is only 'es' and not 'es_ES' and this
make setlocale() to fail setting the locale.
I solved the problem setting setlocale manually in:
/imp/lib/postconf.php3
Is this normal behavior of the setlocale() function?
To check this, login in IMP in a language diferent than English
and check the date strings after using this line in your defaults.php3:
$default->date_format = '%d/%b/%y';
Thanks
Oliver
--
Oliver Schulze L.
oliver@samera.com.py
Asuncion-Paraguay