Hello

On Wed, Feb 09, 2005 at 06:56:51PM -0600, Gunnar Wolf wrote:
> 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.

Probably.

> > > [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 :)

Good to know.

I'll see if I can reproduce it here.

If you find the cause, I'm very interested in knowing that.

Regards,

// Ola

> -- 
> 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
> 
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to