Summary | Use the correct language on pages without autentication required |
Queue | Horde Base |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | rui.carneiro (at) portugalmail (dot) net |
Created | 04/06/2011 (5204 days ago) |
Due | |
Updated | 04/12/2011 (5198 days ago) |
Assigned | |
Resolved | 04/12/2011 (5198 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
Bug #9822: Add package.xml entry1 files changed, 5 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/720cd5ca6315be83839ccad827d9975adc11b7ea
Assigned to Michael Slusarz
State ⇒ Resolved
Ticket #9437- I was mistaken. I guess we were usingprefs->language as the default language.
But the patch provided here is still wrong. The correct solution,
reinitializing the language after preferences have been loaded and
ONLY in the pre-auth situation, has been implemented.
Bug #9822: Reinitialize language after loading prefs before authentication1 files changed, 5 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/bb1ba8c73fc18e667d70541cc25b2b7fe868275c
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.
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.
is still a valid bug.
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.
Version ⇒ Git master
be set here. We should not be hackishly grabbing the language from
the prefs file, esepcially since this does not take into effect
whether the pref is locked.
language pref being set (locked or not), gives you the desired
default language for the website.
$this->nlsconfig->curr_default, not prefs->language.
to be set here. We should not be hackishly grabbing the language
from the prefs file, esepcially since this does not take into effect
whether the pref is locked.
pref being set (locked or not), gives you the desired default language
for the website.
Version ⇒
Queue ⇒ Horde Base
be set here. We should not be hackishly grabbing the language from
the prefs file, esepcially since this does not take into effect
whether the pref is locked.
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: 0001-Load-prefs-file-to-use-the-correct-language.patch
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Use the correct language on pages without autentication required
Type ⇒ Bug
Patch attached (Trying to solve a chicken and egg problem :p)