translate filters

This commit is contained in:
j 2023-12-02 18:43:25 +01:00
parent 1c8ea51d9b
commit 35852c36cf
2 changed files with 6 additions and 2 deletions

View file

@ -189,7 +189,9 @@ pandora.ui.documentFilter = function(id) {
{id: 'clearFilters', title: Ox._('Clear All Filters'), keyboard: 'shift alt control a'},
{},
{group: 'filter', max: 1, min: 1, items: pandora.site.documentFilters.map(function(filter) {
return Ox.extend({checked: filter.id == id}, filter);
return Ox.extend({checked: filter.id == id}, filter, {
title: Ox._(filter.title)
});
})}
],
type: 'image',

View file

@ -187,7 +187,9 @@ pandora.ui.filter = function(id) {
{id: 'clearFilters', title: Ox._('Clear All Filters'), keyboard: 'shift alt control a'},
{},
{group: 'filter', max: 1, min: 1, items: pandora.site.filters.map(function(filter) {
return Ox.extend({checked: filter.id == id}, filter);
return Ox.extend({checked: filter.id == id}, filter, {
title: Ox._(filter.title)
});
})}
],
type: 'image',