only use enabled languages

This commit is contained in:
j 2014-04-01 14:23:33 +00:00
commit e4e7fb87b1
3 changed files with 3 additions and 3 deletions

View file

@ -2204,7 +2204,7 @@ pandora.setLocale = function(locale, callback) {
var url;
// language from http header might not be supported,
// fall back to site default
if (Ox.isUndefined(Ox.LOCALE_NAMES[locale])) {
if (pandora.site.languages.indexOf(locale) == -1) {
locale = pandora.site.user.ui.locale;
}
if (locale != 'en') {