[Tickets #9822] Re: Use the correct language on pages without autentication required

bugs at horde.org bugs at horde.org
Tue Apr 12 16:53:09 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9822
------------------------------------------------------------------------------
  Ticket             | 9822
  Updated By         | Michael Slusarz <slusarz at horde.org>
  Summary            | Use the correct language on pages without
                     | autentication required
  Queue              | Horde Base
  Version            | Git master
  Type               | Bug
  State              | Not A Bug
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


Michael Slusarz <slusarz at horde.org> (2011-04-12 16:53) wrote:

> I changed the default nls language to 'pt_PT', and the login and  
> registry page are still in English which doesn't seem to be the  
> correct behavior, because i've defined the languages everywhere i  
> could imagine, and still my newcomers will have its pages in English  
> until they log in.

The language is determined in Horde_Registry::preferredLang() so you  
might want to look there.  We select languages in this order:

1. Preference (but this is NOT intended to be used pre-authentication;  
in fact, there should probably be a getAuth() check there)
2. Language selected on login screen.
3. Language in session (a guest user can set a language in a session)
4. Browser's list of accepted languages
5. NLS curr_default
6. Fallback to en_US if all else fails

I tend to think that your users' browser is reporting that it wants  
English as its first option.






More information about the bugs mailing list