Skip to content

Commit 4e5f280

Browse files
committed
Send to trash fixes
1 parent 344554b commit 4e5f280

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

features/personas/SubtreeEditor.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ Feature: Verify that an Editor with Subtree limitations can perform all his task
6161
| buttonName |
6262
| Create content |
6363
| Edit |
64-
And the "Delete" button is not visible
64+
And the "Send to trash" button is not visible
6565

6666
Scenario: I cannot edit, create or send to trash Content outside my permissions
6767
Given I navigate to content "FolderGrandParent" of type "DedicatedFolder" in "root"
6868
Then the buttons are disabled
6969
| buttonName |
7070
| Create content |
7171
| Edit |
72-
And the "Delete" button is not visible
72+
And the "Send to trash" button is not visible

src/bundle/Resources/translations/forms.en.xliff

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,18 @@
132132
<note>key: location_move.move</note>
133133
</trans-unit>
134134
<trans-unit id="4b7b2b4de853db0d1fb1851e07f3ccc51e5713fc" resname="location_trash_form.default_trash">
135-
<source>Send only this Content item to Trash</source>
136-
<target state="new">Send only this Content item to Trash</target>
135+
<source>Send only this Content item to trash</source>
136+
<target state="new">Send only this Content item to trash</target>
137137
<note>key: location_trash_form.default_trash</note>
138138
</trans-unit>
139139
<trans-unit id="796f8196b2bc086fe788e6689a6189c79b8e047e" resname="location_trash_form.trash">
140-
<source>Delete</source>
141-
<target state="new">Delete</target>
140+
<source>Send to trash</source>
141+
<target state="new">Send to trash</target>
142142
<note>key: location_trash_form.trash</note>
143143
</trans-unit>
144144
<trans-unit id="2598fe0050f38f3c02014a404ed14aee248e27d1" resname="location_trash_form.trash_with_asset">
145-
<source>Send the Content item and its related assets to Trash</source>
146-
<target state="new">Send the Content item and its related assets to Trash</target>
145+
<source>Send the Content item and its related assets to trash</source>
146+
<target state="new">Send the Content item and its related assets to trash</target>
147147
<note>key: location_trash_form.trash_with_asset</note>
148148
</trans-unit>
149149
<trans-unit id="f86cd366867d370b0706e250355f605e2b783229" resname="policies_delete_form.delete">

src/bundle/Resources/translations/menu.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<note>key: content__sidebar_right__reveal</note>
5353
</trans-unit>
5454
<trans-unit id="9445b360492505d3a8d7be4c316e2cc62f381e03" resname="content__sidebar_right__send_to_trash">
55-
<source>Delete</source>
56-
<target state="new">Delete</target>
55+
<source>Send to trash</source>
56+
<target state="new">Send to trash</target>
5757
<note>key: content__sidebar_right__send_to_trash</note>
5858
</trans-unit>
5959
<trans-unit id="0a801de04935a4bf73c70d29b6c594e1d10811cc" resname="content_create__sidebar_right__cancel">

src/bundle/Resources/translations/sub_items.en.xliff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
<note>key: bulk_delete.error.modal.table_title.users_with_nonusers</note>
7373
</trans-unit>
7474
<trans-unit id="530f5b1097af7206fdabc3a51ac334c933ab4909" resname="bulk_delete.popup.confirm.nonusers">
75-
<source>Delete</source>
76-
<target state="new">Delete</target>
75+
<source>Send to trash</source>
76+
<target state="new">Send to trash</target>
7777
<note>key: bulk_delete.popup.confirm.nonusers</note>
7878
</trans-unit>
7979
<trans-unit id="4953b415cbb1e81833664d96e7051d0a7e3d90c8" resname="bulk_delete.popup.confirm.users_and_users_with_nonusers">

src/bundle/ui-dev/src/modules/sub-items/sub.items.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ export default class SubItemsModule extends Component {
872872
let confirmLabel = '';
873873

874874
if (!isUserContentItemSelected && isNonUserContentItemSelected) {
875-
confirmLabel = Translator.trans(/*@Desc("Delete")*/ 'bulk_delete.popup.confirm.nonusers', {}, 'sub_items');
875+
confirmLabel = Translator.trans(/*@Desc("Send to trash")*/ 'bulk_delete.popup.confirm.nonusers', {}, 'sub_items');
876876
} else {
877877
confirmLabel = Translator.trans(/*@Desc("Delete")*/ 'bulk_delete.popup.confirm.users_and_users_with_nonusers', {}, 'sub_items');
878878
}

src/lib/Form/TrashLocationOptionProvider/HasUniqueAssetRelation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public function addOptions(FormInterface $form, Location $location): void
5656
/** @Desc("Asset Fields(s)") */
5757
$this->translator->trans('form.trash_assets.label', [], 'forms'),
5858
'choices' => [
59-
/** @Desc("Send only this Content item to Trash") */
59+
/** @Desc("Send only this Content item to trash") */
6060
$this->translator->trans('location_trash_form.default_trash', $translatorParameters, 'forms') => self::RADIO_SELECT_DEFAULT_TRASH,
61-
/** @Desc("Send the Content item and its related assets to Trash") */
61+
/** @Desc("Send the Content item and its related assets to trash") */
6262
$this->translator->trans('location_trash_form.trash_with_asset', $translatorParameters, 'forms') => self::RADIO_SELECT_TRASH_WITH_ASSETS,
6363
],
6464
'help_multiline' => [

src/lib/Form/Type/Location/LocationTrashType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5656
->add(
5757
'trash',
5858
SubmitType::class,
59-
['label' => /** @Desc("Delete") */ 'location_trash_form.trash']
59+
['label' => /** @Desc("Send to trash") */ 'location_trash_form.trash']
6060
);
6161

6262
$builder->get('trash_options')->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {

0 commit comments

Comments
 (0)