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

@ -2,7 +2,10 @@
pandora.ui.sectionButtons = function(section) {
var that = Ox.ButtonGroup({
buttons: pandora.site.sections,
buttons: Ox.clone(pandora.site.sections, true).map(function(section) {
section.title = Ox._(section.title);
return section;
}),
id: 'sectionButtons',
selectable: true,
value: section || pandora.user.ui.section