Skip to content

Commit

Permalink
selected.items.panel translations change
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Nov 25, 2024
1 parent 2f7070c commit 0ae6c7b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,26 @@
<target state="new">Cannot find children Locations with ID %idList%</target>
<note>key: select_location.error</note>
</trans-unit>
<trans-unit id="9683e003c6df3c0b3e5e3d7a67f44cd0d1564b27" resname="selected_items.collapse.sidebar">
<source>Collapse sidebar</source>
<target state="new">Collapse sidebar</target>
<note>key: selected_items.collapse.sidebar</note>
</trans-unit>
<trans-unit id="31f604a099c6795044ad9fe5eeb9ae5ed53b317c" resname="selected_items.deselect_all">
<source>{1}Deselect|[2,Inf]Deselect all</source>
<target state="new">{1}Deselect|[2,Inf]Deselect all</target>
<note>key: selected_items.deselect_all</note>
</trans-unit>
<trans-unit id="968df1cecdd3962e13a6f1f8a4469a5de1fd63ce" resname="selected_items.expand.sidebar">
<source>Expand sidebar</source>
<target state="new">Expand sidebar</target>
<note>key: selected_items.expand.sidebar</note>
</trans-unit>
<trans-unit id="14f4788ed456f8eeabd0beccc78f1026671790c8" resname="selected_items.selection_info">
<source>{1}%count% selected item|[2,Inf]%count% selected items</source>
<target state="new">{1}%count% selected item|[2,Inf]%count% selected items</target>
<note>key: selected_items.selection_info</note>
</trans-unit>
<trans-unit id="78dacf26451435b61bf654b180ceed82022a2c3c" resname="selected_items_panel.item.remove_item">
<source>Clear selection</source>
<target state="new">Clear selection</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 0ae6c7b

Please sign in to comment.