diff --git a/src/bundle/Resources/translations/ibexa_universal_discovery_widget.en.xliff b/src/bundle/Resources/translations/ibexa_universal_discovery_widget.en.xliff index 78ec8a2bb8..2395ecfb49 100644 --- a/src/bundle/Resources/translations/ibexa_universal_discovery_widget.en.xliff +++ b/src/bundle/Resources/translations/ibexa_universal_discovery_widget.en.xliff @@ -296,6 +296,26 @@ Cannot find children Locations with ID %idList% key: select_location.error + + Collapse sidebar + Collapse sidebar + key: selected_items.collapse.sidebar + + + {1}Deselect|[2,Inf]Deselect all + {1}Deselect|[2,Inf]Deselect all + key: selected_items.deselect_all + + + Expand sidebar + Expand sidebar + key: selected_items.expand.sidebar + + + {1}%count% selected item|[2,Inf]%count% selected items + {1}%count% selected item|[2,Inf]%count% selected items + key: selected_items.selection_info + Clear selection Clear selection diff --git a/src/bundle/ui-dev/src/modules/universal-discovery/components/selected-items/selected.items.panel.js b/src/bundle/ui-dev/src/modules/universal-discovery/components/selected-items/selected.items.panel.js index 008a0d9e17..d3bedfc68e 100644 --- a/src/bundle/ui-dev/src/modules/universal-discovery/components/selected-items/selected.items.panel.js +++ b/src/bundle/ui-dev/src/modules/universal-discovery/components/selected-items/selected.items.panel.js @@ -38,12 +38,12 @@ const SelectedItemsPanel = () => { 'c-selected-items-panel--expanded': isExpanded, }); const expandLabel = Translator.trans( - /*@Desc("Expand sidebar")*/ 'selected_locations.expand.sidebar', + /*@Desc("Expand sidebar")*/ 'selected_items.expand.sidebar', {}, 'ibexa_universal_discovery_widget', ); const collapseLabel = Translator.trans( - /*@Desc("Collapse sidebar")*/ 'selected_locations.collapse.sidebar', + /*@Desc("Collapse sidebar")*/ 'selected_items.collapse.sidebar', {}, 'ibexa_universal_discovery_widget', ); @@ -57,7 +57,7 @@ const SelectedItemsPanel = () => { }; const renderSelectionCounter = () => { const selectedLabel = Translator.transChoice( - /*@Desc("{1}%count% selected item|[2,Inf]%count% selected items")*/ 'selected_locations.selected_items', + /*@Desc("{1}%count% selected item|[2,Inf]%count% selected items")*/ 'selected_items.selection_info', selectedItems.length, { count: selectedItems.length }, 'ibexa_universal_discovery_widget', @@ -80,7 +80,7 @@ const SelectedItemsPanel = () => { }; const renderActionBtns = () => { const removeLabel = Translator.transChoice( - /*@Desc("{1}Deselect|[2,Inf]Deselect all")*/ 'selected_locations.deselect_all', + /*@Desc("{1}Deselect|[2,Inf]Deselect all")*/ 'selected_items.deselect_all', selectedItems.length, {}, 'ibexa_universal_discovery_widget',