diff --git a/pandora/config.0xdb.jsonc b/pandora/config.0xdb.jsonc index abc28422..562acee7 100644 --- a/pandora/config.0xdb.jsonc +++ b/pandora/config.0xdb.jsonc @@ -717,7 +717,6 @@ "system": "0xDB@0xDB.org" }, "https": true, - "locale": "en", "id": "0xdb", "name": "0xDB", "url": "0xDB.org", @@ -805,7 +804,7 @@ "listSort": [{"key": "director", "operator": "+"}], "listView": "grid", "lists": {}, - "locale": "", + "locale": "en", "mapFind": "", "mapSelection": "", "page": "", diff --git a/pandora/config.indiancinema.jsonc b/pandora/config.indiancinema.jsonc index 3bc2a938..808bc99a 100644 --- a/pandora/config.indiancinema.jsonc +++ b/pandora/config.indiancinema.jsonc @@ -730,7 +730,6 @@ }, "folderdepth": 4, "https": true, - "locale": "en", "id": "indiancinema", "name": "Indiancine.ma", "url": "indiancine.ma", @@ -817,7 +816,7 @@ "listSort": [{"key": "year", "operator": "+"}], "listView": "grid", "lists": {}, - "locale": "", + "locale": "en", "mapFind": "", "mapSelection": "", "page": "", diff --git a/pandora/config.padma.jsonc b/pandora/config.padma.jsonc index 3897b958..051c5ac2 100644 --- a/pandora/config.padma.jsonc +++ b/pandora/config.padma.jsonc @@ -608,7 +608,6 @@ "system": "system@pad.ma" }, "https": true, - "locale": "en", "id": "padma", "name": "Pad.ma", "url": "pad.ma", @@ -695,7 +694,7 @@ "listSort": [{"key": "title", "operator": "+"}], "listView": "grid", "lists": {}, - "locale": "", + "locale": "en", "mapFind": "", "mapSelection": "", "page": "", diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index 4d1b7e31..31565de0 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -516,7 +516,7 @@ ], "sendReferrer": true, "site": { - "description": "This is a demp of pan.do/ra a free, open source media archive. It allows you to manage large, decentralized collections of video, to collaboratively create metadata and time-based annotations, and to serve your archive as a cutting-edge web application.", + "description": "This is a demo of pan.do/ra - a free, open source media archive. It allows you to manage large, decentralized collections of video, to collaboratively create metadata and time-based annotations, and to serve your archive as a cutting-edge web application.", "email": { // E-mail address in contact form (to) "contact": "system@pandora.local", @@ -527,7 +527,6 @@ }, "https": false, "id": "pandora", - "locale": "en", "name": "Demo", "url": "pandora.local", "videoprefix": "" @@ -613,7 +612,7 @@ "listSort": [{"key": "title", "operator": "+"}], "listView": "grid", "lists": {}, - "locale": "", + "locale": "en", "mapFind": "", "mapSelection": "", "page": "", diff --git a/static/js/utils.js b/static/js/utils.js index 47872096..ce3a80d2 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -1933,7 +1933,7 @@ pandora.setLocale = function(locale, callback) { // language from http header might not be supported, // fall back to site default if (Ox.isUndefined(Ox.LOCALE_NAMES[locale])) { - locale = pandora.site.site.locale; + locale = pandora.site.user.ui.locale; } if (locale != 'en') { if (pandora.localStorage('enableDebugMode')) {