forked from 0x2620/pandora
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:
parent
24afe66c75
commit
5489823a61
7 changed files with 29 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue