[imp] setlocale() only works with xx_XX lang strings

Mauricio Cuenca fauro@mindless.com
Thu, 20 Sep 2001 10:36:02 -0400


I'm trying to do the same in IMP 2.3.7 but this version doesn't have a
postconf.php and postconf.php3 files. What is the equivalent ?

Thanks,

_____________________
Mauricio Cuenca
mcuenca@Telesat.com.co


----- Original Message -----
From: "Oliver Schulze L." <oliver@samera.com.py>
To: <imp@lists.horde.org>
Sent: Thursday, September 20, 2001 3:24 AM
Subject: [imp] setlocale() only works with xx_XX lang strings


> 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
>
>
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
>