translate site sections
This commit is contained in:
parent
f9edbbe1c6
commit
5fa3b66a43
3 changed files with 10 additions and 4 deletions
|
@ -1830,8 +1830,8 @@ pandora.ui.mainMenu = function() {
|
||||||
function getViewMenu() {
|
function getViewMenu() {
|
||||||
return { id: 'viewMenu', title: Ox._('View'), items: [
|
return { id: 'viewMenu', title: Ox._('View'), items: [
|
||||||
{ id: 'section', title: Ox._('Section'), items: [
|
{ id: 'section', title: Ox._('Section'), items: [
|
||||||
{ group: 'viewsection', min: 1, max: 1, items: pandora.site.sections.map(function(section) {
|
{ group: 'viewsection', min: 1, max: 1, items: Ox.clone(pandora.site.sections, true).map(function(section) {
|
||||||
section = Ox.extend({}, section)
|
section.title = Ox._(section.title);
|
||||||
section.checked = section.id == ui.section;
|
section.checked = section.id == ui.section;
|
||||||
return section;
|
return section;
|
||||||
}) }
|
}) }
|
||||||
|
|
|
@ -2,7 +2,10 @@
|
||||||
|
|
||||||
pandora.ui.sectionButtons = function(section) {
|
pandora.ui.sectionButtons = function(section) {
|
||||||
var that = Ox.ButtonGroup({
|
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',
|
id: 'sectionButtons',
|
||||||
selectable: true,
|
selectable: true,
|
||||||
value: section || pandora.user.ui.section
|
value: section || pandora.user.ui.section
|
||||||
|
|
|
@ -4,7 +4,10 @@ pandora.ui.sectionSelect = function(section) {
|
||||||
// fixme: duplicated
|
// fixme: duplicated
|
||||||
var that = Ox.Select({
|
var that = Ox.Select({
|
||||||
id: 'sectionSelect',
|
id: 'sectionSelect',
|
||||||
items: pandora.site.sections,
|
items: Ox.clone(pandora.site.sections, true).map(function(section) {
|
||||||
|
section.title = Ox._(section.title);
|
||||||
|
return section;
|
||||||
|
}),
|
||||||
value: section || pandora.user.ui.section
|
value: section || pandora.user.ui.section
|
||||||
}).css({
|
}).css({
|
||||||
float: 'left',
|
float: 'left',
|
||||||
|
|
Loading…
Reference in a new issue