diff --git a/pandora/config.0xdb.jsonc b/pandora/config.0xdb.jsonc index b6f83f9d..85906102 100644 --- a/pandora/config.0xdb.jsonc +++ b/pandora/config.0xdb.jsonc @@ -629,6 +629,7 @@ {"id": "media", "title": "Media"} ], "language": "en", + "languages": ["ar", "el", "en", "hi"], // fixme: should be renamed to annotationLayers "layers": [ { diff --git a/pandora/config.indiancinema.jsonc b/pandora/config.indiancinema.jsonc index 8a8c14c4..0a1624d9 100644 --- a/pandora/config.indiancinema.jsonc +++ b/pandora/config.indiancinema.jsonc @@ -646,6 +646,7 @@ {"id": "media", "title": "Media"} ], "language": "en", + "languages": ["ar", "el", "en", "hi"], // fixme: should be renamed to annotationLayers "layers": [ { diff --git a/pandora/config.padma.jsonc b/pandora/config.padma.jsonc index 79f46727..4d0076ec 100644 --- a/pandora/config.padma.jsonc +++ b/pandora/config.padma.jsonc @@ -520,6 +520,7 @@ {"id": "media", "title": "Media"} ], "language": "en", + "languages": ["ar", "el", "en", "hi"], "layers": [ { "id": "places", diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index dc6ab90a..6f5aba76 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -442,6 +442,7 @@ {"id": "media", "title": "Media"} ], "language": "en", + "languages": ["ar", "el", "en", "hi"], "layers": [ { "id": "keywords", diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index 1dcb83e8..22d6de99 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -190,7 +190,7 @@ pandora.ui.mainMenu = function() { ] }, { id: 'locale', title: Ox._('Language'), items: [ - { group: 'setlocale', min: 1, max: 1, items: Object.keys(Ox.LOCALE_NAMES).map(function(locale) { + { group: 'setlocale', min: 1, max: 1, items: pandora.site.languages.map(function(locale) { return {id: locale, title: Ox.LOCALE_NAMES[locale], checked: ui.locale == locale} }) } ] },