Mensaje citado por Ola Lundqvist <[EMAIL PROTECTED]>:

> > It is in fact more complicated. Take a look at Lang::select
> > (/usr/share/horde2/lib/Lang.php), the steps seem to be:
> >
> > - Is the language set in the preferences?
> > - Did the user select a language at login?
> > - Is there a language set in the cookie?
> > - Does the browser supply a list of accepted languages? If so, is any of
> them
> > valid, or can you match the first two letters of any of them to a valid
> one?
> > - Get the default configured value
>
> Nice. I thought it would be something like that. I wonder why it fail
> anyway.

Today I haven't had any time to look into it, but I think it can be something
gettext-related, as the language (as you note later on) is correctly set.

> > [Tue Feb  8 16:25:31 2005] [error] setLang()
> > [Tue Feb  8 16:25:31 2005] [error] isValid(es_MX):
> > [Tue Feb  8 16:25:31 2005] [error] isValid(es_ES): 1
> > [Tue Feb  8 16:25:31 2005] [error] select(): es_ES
> This looks good so far.
>
> > [Tue Feb  8 16:25:31 2005] [error] setLang(de_DE)
> > [Tue Feb  8 16:25:31 2005] [error] isValid(de_DE): 1
> No select? Hmm.
>
> > [Tue Feb  8 16:25:32 2005] [error] setLang()
> > [Tue Feb  8 16:25:32 2005] [error] isValid(es_MX):
> > [Tue Feb  8 16:25:32 2005] [error] isValid(es_ES): 1
> > [Tue Feb  8 16:25:32 2005] [error] select(): es_ES
>
> Ok. Do the interface work in non-english now?

Nope. This run was with the browser set to es-mx (hence it found the es_ES as
the most adequate locale to show), and de_DE in my user preferences (which
should have higher precedence than the browser's), and the interface still
appears in English.

> Must also check that files in /usr/share/horde2/po
> has been properly generated.
>
> [EMAIL PROTECTED]:~# ls -l /usr/share/horde2/po/
> (...)

It is correct down to the last bit :)

-- 
Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)1451-2244 / 5554-9450
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF


Reply via email to