From 35852c36cf54a2fde6e12aa265318cda67dea1b7 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 2 Dec 2023 18:43:25 +0100 Subject: [PATCH] translate filters --- static/js/documentFilter.js | 4 +++- static/js/filter.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/documentFilter.js b/static/js/documentFilter.js index ab7f39fe6..c98ea3a0f 100644 --- a/static/js/documentFilter.js +++ b/static/js/documentFilter.js @@ -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', diff --git a/static/js/filter.js b/static/js/filter.js index c52fdcda3..c65733ed2 100644 --- a/static/js/filter.js +++ b/static/js/filter.js @@ -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',