From 1afb4a6b8706a92d34d4bf78d11684ebbeee8a46 Mon Sep 17 00:00:00 2001 From: Oliver Tacke Date: Tue, 31 Oct 2023 19:38:10 +0100 Subject: [PATCH] HFP-3819 Allow sorting of panels by title --- h5p-accordion.js | 11 ++++++- language/.en.json | 4 +++ language/af.json | 6 +++- language/ar.json | 6 +++- language/bg.json | 76 +++++++++++++++++++++++-------------------- language/bs.json | 36 +++++++++++--------- language/ca.json | 6 +++- language/cs.json | 6 +++- language/da.json | 36 +++++++++++--------- language/de.json | 6 +++- language/el.json | 38 ++++++++++++---------- language/es-mx.json | 6 +++- language/es.json | 6 +++- language/et.json | 74 +++++++++++++++++++++-------------------- language/eu.json | 6 +++- language/fa.json | 6 +++- language/fi.json | 38 ++++++++++++---------- language/fr.json | 6 +++- language/gl.json | 6 +++- language/he.json | 6 +++- language/hu.json | 36 +++++++++++--------- language/it.json | 6 +++- language/ja.json | 6 +++- language/ka.json | 6 +++- language/ko.json | 38 ++++++++++++---------- language/lt.json | 6 +++- language/lv.json | 6 +++- language/mn.json | 6 +++- language/nb.json | 6 +++- language/nl.json | 6 +++- language/nn.json | 36 +++++++++++--------- language/pl.json | 6 +++- language/pt-br.json | 6 +++- language/pt.json | 6 +++- language/ro.json | 36 +++++++++++--------- language/ru.json | 38 ++++++++++++---------- language/sl.json | 6 +++- language/sma.json | 4 +++ language/sme.json | 4 +++ language/smj.json | 4 +++ language/sr.json | 38 ++++++++++++---------- language/sv.json | 6 +++- language/sw.json | 6 +++- language/te.json | 18 ++++++---- language/th.json | 6 +++- language/tr.json | 6 +++- language/uk.json | 38 ++++++++++++---------- language/vi.json | 6 +++- language/zh-cn.json | 6 +++- language/zh-hans.json | 6 +++- language/zh-hant.json | 6 +++- semantics.json | 11 ++++++- 52 files changed, 512 insertions(+), 294 deletions(-) diff --git a/h5p-accordion.js b/h5p-accordion.js index 41d53c3..bbddd6d 100644 --- a/h5p-accordion.js +++ b/h5p-accordion.js @@ -27,6 +27,15 @@ H5P.Accordion = (function ($) { panels: [] }, params); + if (params.sortByLabels) { + this.params.panels = this.params.panels.sort((panel1, panel2) => { + if (panel1.title === panel2.title) { + return 0; + } + return (panel1.title < panel2.title) ? -1 : 1; + }); + } + this.contentData = contentData; this.instances = []; @@ -129,7 +138,7 @@ H5P.Accordion = (function ($) { } } }, - // The class needs to be set programmatically as the title + // The class needs to be set programmatically as the title // is not able to detect focus-visible on the button 'focus': function () { if($titleButton.is(':focus-visible')) { diff --git a/language/.en.json b/language/.en.json index 7fc821d..cd766d8 100644 --- a/language/.en.json +++ b/language/.en.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/af.json b/language/af.json index 547b207..b4c84a3 100644 --- a/language/af.json +++ b/language/af.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/ar.json b/language/ar.json index 85d2b39..cd52963 100644 --- a/language/ar.json +++ b/language/ar.json @@ -31,6 +31,10 @@ "label": "”H4“" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/bg.json b/language/bg.json index 1734fe5..7363f75 100644 --- a/language/bg.json +++ b/language/bg.json @@ -1,36 +1,40 @@ -{ - "semantics": [ - { - "label": "Панели", - "entity": "panel", - "field": { - "label": "Съдържание", - "entity": "content", - "fields": [ - { - "label": "Заглавие" - }, - { - "label": "Тип съдържание", - "entity": "content" - } - ] - } - }, - { - "label": "H тагове за етикети (не влияе на размера на етикета)", - "description": "H таг се използва за етикетите. Обикновено е H2, но ако се задава под H2 заглавие, да се използва H3. Не влияе на размера на етикетите, използва се единствено за семантични цели.", - "options": [ - { - "label": "H2" - }, - { - "label": "H3" - }, - { - "label": "H4" - } - ] - } - ] -} +{ + "semantics": [ + { + "label": "Панели", + "entity": "panel", + "field": { + "label": "Съдържание", + "entity": "content", + "fields": [ + { + "label": "Заглавие" + }, + { + "label": "Тип съдържание", + "entity": "content" + } + ] + } + }, + { + "label": "H тагове за етикети (не влияе на размера на етикета)", + "description": "H таг се използва за етикетите. Обикновено е H2, но ако се задава под H2 заглавие, да се използва H3. Не влияе на размера на етикетите, използва се единствено за семантични цели.", + "options": [ + { + "label": "H2" + }, + { + "label": "H3" + }, + { + "label": "H4" + } + ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." + } + ] +} \ No newline at end of file diff --git a/language/bs.json b/language/bs.json index bd74b0f..cd766d8 100644 --- a/language/bs.json +++ b/language/bs.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Panels", - "entity":"panel", - "field":{ - "label":"Content", - "entity":"content", - "fields":[ + "label": "Panels", + "entity": "panel", + "field": { + "label": "Content", + "entity": "content", + "fields": [ { - "label":"Title" + "label": "Title" }, { - "label":"Content type", - "entity":"content" + "label": "Content type", + "entity": "content" } ] } }, { - "label":"H tags for labels (does not affect the size of the label)", - "description":"The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", - "options":[ + "label": "H tags for labels (does not affect the size of the label)", + "description": "The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/ca.json b/language/ca.json index c5e682f..49faded 100644 --- a/language/ca.json +++ b/language/ca.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/cs.json b/language/cs.json index e37a91d..24e4b18 100644 --- a/language/cs.json +++ b/language/cs.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/da.json b/language/da.json index bd74b0f..cd766d8 100644 --- a/language/da.json +++ b/language/da.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Panels", - "entity":"panel", - "field":{ - "label":"Content", - "entity":"content", - "fields":[ + "label": "Panels", + "entity": "panel", + "field": { + "label": "Content", + "entity": "content", + "fields": [ { - "label":"Title" + "label": "Title" }, { - "label":"Content type", - "entity":"content" + "label": "Content type", + "entity": "content" } ] } }, { - "label":"H tags for labels (does not affect the size of the label)", - "description":"The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", - "options":[ + "label": "H tags for labels (does not affect the size of the label)", + "description": "The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/de.json b/language/de.json index edbe6e7..de49ba7 100644 --- a/language/de.json +++ b/language/de.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/el.json b/language/el.json index 56b5f70..ad3cdeb 100644 --- a/language/el.json +++ b/language/el.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Αναδιπλούμενα Πλαίσια", - "entity":"πλαισιου", - "field":{ - "label":"Περιεχόμενο", - "entity":"περιεχομενου", - "fields":[ + "label": "Αναδιπλούμενα Πλαίσια", + "entity": "πλαισιου", + "field": { + "label": "Περιεχόμενο", + "entity": "περιεχομενου", + "fields": [ { - "label":"Τίτλος" + "label": "Τίτλος" }, { - "label":"Τύπος περιεχομένου", - "entity":"περιεχομενου" + "label": "Τύπος περιεχομένου", + "entity": "περιεχομενου" } ] } }, { - "label":"Ετικέτες h για επικεφαλίδες (δεν επηρεάζει το μέγεθος της επικεφαλίδας)", - "description":"Η ετικέτα h που χρησιμοποιείται στις επικεφαλίδες. Κανονικά χρησιμοποιείται το H2 αλλά αν υπάγεται σε ένα H2 χρησιμοποιήστε το H3. Η ρύθμιση αυτή δεν επηρεάζει το μέγεθος των επικεφαλίδων, χρησιμοποιείται μόνο για σημασιολογικούς σκοπούς.", - "options":[ + "label": "Ετικέτες h για επικεφαλίδες (δεν επηρεάζει το μέγεθος της επικεφαλίδας)", + "description": "Η ετικέτα h που χρησιμοποιείται στις επικεφαλίδες. Κανονικά χρησιμοποιείται το H2 αλλά αν υπάγεται σε ένα H2 χρησιμοποιήστε το H3. Η ρύθμιση αυτή δεν επηρεάζει το μέγεθος των επικεφαλίδων, χρησιμοποιείται μόνο για σημασιολογικούς σκοπούς.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/es-mx.json b/language/es-mx.json index 614b4ac..11a8b3c 100644 --- a/language/es-mx.json +++ b/language/es-mx.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/es.json b/language/es.json index 614b4ac..11a8b3c 100644 --- a/language/es.json +++ b/language/es.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/et.json b/language/et.json index 75f206a..4d72e2d 100644 --- a/language/et.json +++ b/language/et.json @@ -1,36 +1,40 @@ -{ - "semantics":[ - { - "label":"Paneelid", - "entity":"paneel", - "field":{ - "label":"Sisu", - "entity":"sisu", - "fields":[ - { - "label":"Pealkiri" - }, - { - "label":"Sisu tüüp", - "entity":"sisu" - } - ] - } - }, - { - "label":"Pealkirja H tunnus (ei mõjuta pealkirja suurust)", - "description":"Pealkirjade h tunnus. Tavaliselt H2, kuid alapealkirjade puhul kasuta H3. Ei mõjuta pealkirjade suurust, kasutatakse üksnes eristaval eesmärgil.", - "options":[ - { - "label":"H2" - }, - { - "label":"H3" - }, - { - "label":"H4" - } - ] - } - ] +{ + "semantics": [ + { + "label": "Paneelid", + "entity": "paneel", + "field": { + "label": "Sisu", + "entity": "sisu", + "fields": [ + { + "label": "Pealkiri" + }, + { + "label": "Sisu tüüp", + "entity": "sisu" + } + ] + } + }, + { + "label": "Pealkirja H tunnus (ei mõjuta pealkirja suurust)", + "description": "Pealkirjade h tunnus. Tavaliselt H2, kuid alapealkirjade puhul kasuta H3. Ei mõjuta pealkirjade suurust, kasutatakse üksnes eristaval eesmärgil.", + "options": [ + { + "label": "H2" + }, + { + "label": "H3" + }, + { + "label": "H4" + } + ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." + } + ] } \ No newline at end of file diff --git a/language/eu.json b/language/eu.json index 95a7ab6..d18ab97 100644 --- a/language/eu.json +++ b/language/eu.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/fa.json b/language/fa.json index 2c01a82..614961f 100644 --- a/language/fa.json +++ b/language/fa.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/fi.json b/language/fi.json index fbe35b1..e802bc4 100644 --- a/language/fi.json +++ b/language/fi.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Paneelit", - "entity":"paneeli", - "field":{ - "label":"Sisältö", - "entity":"sisältö", - "fields":[ + "label": "Paneelit", + "entity": "paneeli", + "field": { + "label": "Sisältö", + "entity": "sisältö", + "fields": [ { - "label":"Otsikko" + "label": "Otsikko" }, { - "label":"Sisältötyyppi", - "entity":"sisältö" + "label": "Sisältötyyppi", + "entity": "sisältö" } ] } }, { - "label":"Otsikon H tagi (Ei vaikuta otsikon kokoon)", - "description":"H tagiä käytetään otsikoille. Tyypillisesti H2, mutta jos pitää olla alempitasoinen niin käytä H3. Ei vaikuta otsikon kokoon, käytetty vain kuvaavassa tarkoituksessa.", - "options":[ + "label": "Otsikon H tagi (Ei vaikuta otsikon kokoon)", + "description": "H tagiä käytetään otsikoille. Tyypillisesti H2, mutta jos pitää olla alempitasoinen niin käytä H3. Ei vaikuta otsikon kokoon, käytetty vain kuvaavassa tarkoituksessa.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/fr.json b/language/fr.json index 58eaf79..7122e08 100644 --- a/language/fr.json +++ b/language/fr.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/gl.json b/language/gl.json index bad0c29..e188398 100644 --- a/language/gl.json +++ b/language/gl.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/he.json b/language/he.json index 38546fe..96105a5 100644 --- a/language/he.json +++ b/language/he.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/hu.json b/language/hu.json index bd74b0f..cd766d8 100644 --- a/language/hu.json +++ b/language/hu.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Panels", - "entity":"panel", - "field":{ - "label":"Content", - "entity":"content", - "fields":[ + "label": "Panels", + "entity": "panel", + "field": { + "label": "Content", + "entity": "content", + "fields": [ { - "label":"Title" + "label": "Title" }, { - "label":"Content type", - "entity":"content" + "label": "Content type", + "entity": "content" } ] } }, { - "label":"H tags for labels (does not affect the size of the label)", - "description":"The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", - "options":[ + "label": "H tags for labels (does not affect the size of the label)", + "description": "The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/it.json b/language/it.json index f4f012c..2497c7b 100644 --- a/language/it.json +++ b/language/it.json @@ -31,6 +31,10 @@ "label": "Titolo 4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/ja.json b/language/ja.json index 1f0b410..4f10054 100644 --- a/language/ja.json +++ b/language/ja.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/ka.json b/language/ka.json index 314be50..f27fa8a 100644 --- a/language/ka.json +++ b/language/ka.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/ko.json b/language/ko.json index 67c731c..7a60d18 100644 --- a/language/ko.json +++ b/language/ko.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"패널", - "entity":"패널", - "field":{ - "label":"콘텐츠", - "entity":"콘텐츠", - "fields":[ + "label": "패널", + "entity": "패널", + "field": { + "label": "콘텐츠", + "entity": "콘텐츠", + "fields": [ { - "label":"제목" + "label": "제목" }, { - "label":"콘텐츠 유형", - "entity":"콘텐츠" + "label": "콘텐츠 유형", + "entity": "콘텐츠" } ] } }, { - "label":"라벨을 위한 H 태그 (라벨 크기에는 영향을 주지 않음)", - "description":"레이블에 사용된 H 태그. 일반적으로 H2이지만 H2 머리글 아래에 속할 경우 H3을 사용하십시오. 라벨의 크기에 영향을 주지 않으며, 단지 의미상의 목적으로만 사용됨", - "options":[ + "label": "라벨을 위한 H 태그 (라벨 크기에는 영향을 주지 않음)", + "description": "레이블에 사용된 H 태그. 일반적으로 H2이지만 H2 머리글 아래에 속할 경우 H3을 사용하십시오. 라벨의 크기에 영향을 주지 않으며, 단지 의미상의 목적으로만 사용됨", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/lt.json b/language/lt.json index 93eecd5..00c37cb 100644 --- a/language/lt.json +++ b/language/lt.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/lv.json b/language/lv.json index 6f09f2b..8cfc852 100644 --- a/language/lv.json +++ b/language/lv.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/mn.json b/language/mn.json index 525b1e2..4f977f2 100644 --- a/language/mn.json +++ b/language/mn.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/nb.json b/language/nb.json index f929576..a2177b5 100644 --- a/language/nb.json +++ b/language/nb.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/nl.json b/language/nl.json index 98ae2f5..d6e92a8 100644 --- a/language/nl.json +++ b/language/nl.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/nn.json b/language/nn.json index bd74b0f..cd766d8 100644 --- a/language/nn.json +++ b/language/nn.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Panels", - "entity":"panel", - "field":{ - "label":"Content", - "entity":"content", - "fields":[ + "label": "Panels", + "entity": "panel", + "field": { + "label": "Content", + "entity": "content", + "fields": [ { - "label":"Title" + "label": "Title" }, { - "label":"Content type", - "entity":"content" + "label": "Content type", + "entity": "content" } ] } }, { - "label":"H tags for labels (does not affect the size of the label)", - "description":"The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", - "options":[ + "label": "H tags for labels (does not affect the size of the label)", + "description": "The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/pl.json b/language/pl.json index 2340b36..51b0143 100644 --- a/language/pl.json +++ b/language/pl.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/pt-br.json b/language/pt-br.json index c4362e5..532c096 100644 --- a/language/pt-br.json +++ b/language/pt-br.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/pt.json b/language/pt.json index 063fdc7..6e01144 100644 --- a/language/pt.json +++ b/language/pt.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/ro.json b/language/ro.json index bd74b0f..cd766d8 100644 --- a/language/ro.json +++ b/language/ro.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Panels", - "entity":"panel", - "field":{ - "label":"Content", - "entity":"content", - "fields":[ + "label": "Panels", + "entity": "panel", + "field": { + "label": "Content", + "entity": "content", + "fields": [ { - "label":"Title" + "label": "Title" }, { - "label":"Content type", - "entity":"content" + "label": "Content type", + "entity": "content" } ] } }, { - "label":"H tags for labels (does not affect the size of the label)", - "description":"The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", - "options":[ + "label": "H tags for labels (does not affect the size of the label)", + "description": "The h tag used on the labels. Normally H2 but if this belongs under an H2 heading use H3. Does not affect the size of the labels, only used for semantical purposes.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/ru.json b/language/ru.json index 5c668c3..74e274c 100644 --- a/language/ru.json +++ b/language/ru.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Панели", - "entity":"панель", - "field":{ - "label":"Содержимое", - "entity":"содержимое", - "fields":[ + "label": "Панели", + "entity": "панель", + "field": { + "label": "Содержимое", + "entity": "содержимое", + "fields": [ { - "label":"Название" + "label": "Название" }, { - "label":"Тип материала", - "entity":"Тип материала" + "label": "Тип материала", + "entity": "Тип материала" } ] } }, { - "label":"H теги используются для меток (не влияют на размер заголовка)", - "description":"Теги вида 'h' используются в качестве меток. Обычно используют метку с тегом H2. Однако, в случае, если ваша метка уже находится под заголовком H2, используйте H3. Выбор того или иного тега h не влияет на размер меток, используется только в семантических целях.", - "options":[ + "label": "H теги используются для меток (не влияют на размер заголовка)", + "description": "Теги вида 'h' используются в качестве меток. Обычно используют метку с тегом H2. Однако, в случае, если ваша метка уже находится под заголовком H2, используйте H3. Выбор того или иного тега h не влияет на размер меток, используется только в семантических целях.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/sl.json b/language/sl.json index 2fe363f..ed75702 100644 --- a/language/sl.json +++ b/language/sl.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/sma.json b/language/sma.json index 7fc821d..cd766d8 100644 --- a/language/sma.json +++ b/language/sma.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/sme.json b/language/sme.json index 7fc821d..cd766d8 100644 --- a/language/sme.json +++ b/language/sme.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/smj.json b/language/smj.json index 7fc821d..cd766d8 100644 --- a/language/smj.json +++ b/language/smj.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] } \ No newline at end of file diff --git a/language/sr.json b/language/sr.json index ec6aab3..1a3155b 100644 --- a/language/sr.json +++ b/language/sr.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Панели", - "entity":"panel", - "field":{ - "label":"Садржај", - "entity":"content", - "fields":[ + "label": "Панели", + "entity": "panel", + "field": { + "label": "Садржај", + "entity": "content", + "fields": [ { - "label":"Наслов" + "label": "Наслов" }, { - "label":"Тип садржаја", - "entity":"content" + "label": "Тип садржаја", + "entity": "content" } ] } }, { - "label":"H ознаке за налепнице (не утиче на величину налепнице)", - "description":"Ознака h се користи на налепницама. Уобичајено је H2, али ако ово спада под наслов H2, користите H3. Не утиче на величину налепница, користе се само у семантичке сврхе.", - "options":[ + "label": "H ознаке за налепнице (не утиче на величину налепнице)", + "description": "Ознака h се користи на налепницама. Уобичајено је H2, али ако ово спада под наслов H2, користите H3. Не утиче на величину налепница, користе се само у семантичке сврхе.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/sv.json b/language/sv.json index efb402f..e10c11e 100644 --- a/language/sv.json +++ b/language/sv.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/sw.json b/language/sw.json index 6d28b83..cb93a67 100644 --- a/language/sw.json +++ b/language/sw.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/te.json b/language/te.json index 1dd15e8..e4ed1ab 100644 --- a/language/te.json +++ b/language/te.json @@ -1,8 +1,10 @@ { "semantics": [ { + "label": "ప్యానల్స్", "entity": "ప్యానెల్", "field": { + "label": "కంటెంట్", "entity": "కంటెంట్", "fields": [ { @@ -12,13 +14,12 @@ "label": "కంటెంట్ రకం", "entity": "కంటెంట్" } - ], - "label": "కంటెంట్" - }, - "label": "ప్యానల్స్" + ] + } }, { "label": "లేబుల్స్ కొరకై H ట్యాగ్స్ (ఇది లేబుల్ సైజును మార్పు చేయదు)", + "description": "H ట్యాగ్స్ లేబుల్స్ కై వాడతారు. సాధారణంగా H2 కానీ ఇది H2 హెడ్డింగ్ కింద ఉన్నట్లైతే H3 వాడండి. ఇది లేబుల్స్ సైజును మార్పు చేయదు, సెమాంటిక్ ప్రయోజనాల కోసం మాత్రమే ఉపయోగించబడుతుంది.", "options": [ { "label": "H2" @@ -29,8 +30,11 @@ { "label": "H4" } - ], - "description": "H ట్యాగ్స్ లేబుల్స్ కై వాడతారు. సాధారణంగా H2 కానీ ఇది H2 హెడ్డింగ్ కింద ఉన్నట్లైతే H3 వాడండి. ఇది లేబుల్స్ సైజును మార్పు చేయదు, సెమాంటిక్ ప్రయోజనాల కోసం మాత్రమే ఉపయోగించబడుతుంది." + ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/th.json b/language/th.json index 5808ed8..e277e73 100644 --- a/language/th.json +++ b/language/th.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/tr.json b/language/tr.json index f9e5c5f..2def933 100644 --- a/language/tr.json +++ b/language/tr.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/uk.json b/language/uk.json index 6705aa0..71b477f 100644 --- a/language/uk.json +++ b/language/uk.json @@ -1,36 +1,40 @@ { - "semantics":[ + "semantics": [ { - "label":"Панелі", - "entity":"панель", - "field":{ - "label":"Вміст", - "entity":"вміст", - "fields":[ + "label": "Панелі", + "entity": "панель", + "field": { + "label": "Вміст", + "entity": "вміст", + "fields": [ { - "label":"Назва" + "label": "Назва" }, { - "label":"Тип матеріалу", - "entity":"Тип матеріалу" + "label": "Тип матеріалу", + "entity": "Тип матеріалу" } ] } }, { - "label":"H теги використовуються для міток (не впливають на розмір заголовка)", - "description":"Теги виду 'h' використовуються в якості міток. Зазвичай використовують мітку з тегом H2. Але якщо Ваша мітка вже знаходиться під заголовком H2, використовуйте H3. Вибір того чи іншого тега h не впливає на розмір міток, використовується тільки в семантичних цілях.", - "options":[ + "label": "H теги використовуються для міток (не впливають на розмір заголовка)", + "description": "Теги виду 'h' використовуються в якості міток. Зазвичай використовують мітку з тегом H2. Але якщо Ваша мітка вже знаходиться під заголовком H2, використовуйте H3. Вибір того чи іншого тега h не впливає на розмір міток, використовується тільки в семантичних цілях.", + "options": [ { - "label":"H2" + "label": "H2" }, { - "label":"H3" + "label": "H3" }, { - "label":"H4" + "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/vi.json b/language/vi.json index f5c2be2..db0cb86 100644 --- a/language/vi.json +++ b/language/vi.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/zh-cn.json b/language/zh-cn.json index 1a9c8e1..393b3a9 100644 --- a/language/zh-cn.json +++ b/language/zh-cn.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/zh-hans.json b/language/zh-hans.json index b0f8493..3823ca3 100644 --- a/language/zh-hans.json +++ b/language/zh-hans.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/language/zh-hant.json b/language/zh-hant.json index 740779a..54d1034 100644 --- a/language/zh-hant.json +++ b/language/zh-hant.json @@ -31,6 +31,10 @@ "label": "H4" } ] + }, + { + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title." } ] -} +} \ No newline at end of file diff --git a/semantics.json b/semantics.json index 9dbbc5f..b072f6e 100644 --- a/semantics.json +++ b/semantics.json @@ -53,5 +53,14 @@ } ], "default": "h2" + }, + { + "name": "sortByLabels", + "type": "boolean", + "label": "Sort panels by title", + "description": "If checked, the panels will be displayed in alphabetical order based on the panel title.", + "importance": "low", + "default": false, + "optional": true } -] +] \ No newline at end of file