From 19b3c43808e5a49d7fed3f7ef704fcaac536e4ea Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 28 Jul 2013 17:57:14 +0200 Subject: [PATCH] dont use http locale until locale can be changed in ui --- static/js/pandora.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index 113a91da9..fcaa8b1d7 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -327,8 +327,9 @@ appPanel }); // set locale and initialize url controller - // data.locale - pandora.setLocale(pandora.user.ui.locale || data.locale, function() { + // data.locale is prefered language according to http header + //pandora.setLocale(pandora.user.ui.locale || data.locale, function() { + pandora.setLocale(pandora.user.ui.locale, function() { pandora.URL.init().parse(function() { var isHome = Ox.contains(['/', '/home'], document.location.pathname); if (data.browserSupported) {