dont set default locale in user.ui and use first browser locale by default if available and fall back to site default after that, fixes #1578; load locale from unjoined json files in debug mode

This commit is contained in:
j 2013-07-17 10:24:22 +00:00
commit 5489823a61
7 changed files with 29 additions and 10 deletions

View file

@ -327,7 +327,8 @@ appPanel
});
// set locale and initialize url controller
pandora.setLocale(pandora.user.ui.locale, function() {
// data.locale
pandora.setLocale(pandora.user.ui.locale || data.locale, function() {
pandora.URL.init().parse(function() {
var isHome = Ox.contains(['/', '/home'], document.location.pathname);
if (data.browserSupported) {