Hello, this issue could be both treated as bug report or new feature request. I am using the option "browser detection" in order to show the right home page for anonymous users. I think it is the best option here.

But when the user completes the login, the locale in the user profile should take precedence and automaticaly perform the switch to the recorded locale. IMHO, that is the reason to record a locale for every user.

Thanks a lot. Best regards.

Comments

Roberto Gerola’s picture

Hi.

Yes, actually the order to get the locale is :
1. from the session
2. from the user profile
3. from the browser language
4. from the first language activated

But this method is called only the first time the user access the site.

I understand what you mean :
1. I access the site as anonymous
2. I complete the registration and set my language
3. The locale must change accordingly with my preferences

I verify if a hook is available to implement this option.

Roberto Gerola’s picture

Assigned: Unassigned » Roberto Gerola

This feature has been implemented.
Tomorrow I'll update the CVS and make an official release.

Roberto Gerola’s picture

Available in 2.4 release

Roberto Gerola’s picture

Status: Active » Fixed
Roberto Gerola’s picture

Status: Fixed » Closed (fixed)