forked from 0x2620/pandora
add config option to select available languages
This commit is contained in:
parent
8d0373f879
commit
ea2a5620f6
5 changed files with 5 additions and 1 deletions
|
@ -629,6 +629,7 @@
|
|||
{"id": "media", "title": "Media"}
|
||||
],
|
||||
"language": "en",
|
||||
"languages": ["ar", "el", "en", "hi"],
|
||||
// fixme: should be renamed to annotationLayers
|
||||
"layers": [
|
||||
{
|
||||
|
|
|
@ -646,6 +646,7 @@
|
|||
{"id": "media", "title": "Media"}
|
||||
],
|
||||
"language": "en",
|
||||
"languages": ["ar", "el", "en", "hi"],
|
||||
// fixme: should be renamed to annotationLayers
|
||||
"layers": [
|
||||
{
|
||||
|
|
|
@ -520,6 +520,7 @@
|
|||
{"id": "media", "title": "Media"}
|
||||
],
|
||||
"language": "en",
|
||||
"languages": ["ar", "el", "en", "hi"],
|
||||
"layers": [
|
||||
{
|
||||
"id": "places",
|
||||
|
|
|
@ -442,6 +442,7 @@
|
|||
{"id": "media", "title": "Media"}
|
||||
],
|
||||
"language": "en",
|
||||
"languages": ["ar", "el", "en", "hi"],
|
||||
"layers": [
|
||||
{
|
||||
"id": "keywords",
|
||||
|
|
|
@ -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}
|
||||
}) }
|
||||
] },
|
||||
|
|
Loading…
Reference in a new issue