concrete5/addon_internationalization — pull request #29 by ojalehto (2013-08-28 14:39:43+00:00)
Title: Fixed session default locale, it now checks user's default language.

User's default language was not used with internationalization addon.
This caused site to use predefined default for the site, even if user had selected different default.

Now default language will be returned by user's choise if site has corresponding locale available.

If current page is anything but homepage, `en_US` is allowed even if it is not available in content sections. That is because site might not have it, but you might like to use dashboard in english on a non english site.

In homepage only existing content section locales are allowed even for user's default, because existing locale is needed in case of forwarding rules.