dont use http locale until locale can be changed in ui

This commit is contained in:
j 2013-07-28 17:57:14 +02:00
parent aeed539fe7
commit 19b3c43808

View File

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