translate site sections

This commit is contained in:
j 2023-12-02 17:18:50 +01:00
commit 5fa3b66a43
3 changed files with 10 additions and 4 deletions

View file

@ -1830,8 +1830,8 @@ pandora.ui.mainMenu = function() {
function getViewMenu() {
return { id: 'viewMenu', title: Ox._('View'), items: [
{ id: 'section', title: Ox._('Section'), items: [
{ group: 'viewsection', min: 1, max: 1, items: pandora.site.sections.map(function(section) {
section = Ox.extend({}, section)
{ group: 'viewsection', min: 1, max: 1, items: Ox.clone(pandora.site.sections, true).map(function(section) {
section.title = Ox._(section.title);
section.checked = section.id == ui.section;
return section;
}) }