From b04963a1a9c9920d92ca53e1392c54cf4dad4e4c Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 15 Sep 2020 13:21:29 +0200 Subject: [PATCH] Rename "trash bin" to the "deleted files". --- apps/files/src/components/FilesAppBar.vue | 8 +++----- apps/files/src/components/Trashbin.vue | 4 ++-- apps/files/src/default.js | 2 +- apps/files/src/store/actions.js | 4 ++-- changelog/unreleased/change-wording-trashbin | 6 ++++++ .../features/webUITrashbin/trashbinDelete.feature | 4 ++-- 6 files changed, 16 insertions(+), 12 deletions(-) create mode 100644 changelog/unreleased/change-wording-trashbin diff --git a/apps/files/src/components/FilesAppBar.vue b/apps/files/src/components/FilesAppBar.vue index 31112125bee..cbdac22bd17 100644 --- a/apps/files/src/components/FilesAppBar.vue +++ b/apps/files/src/components/FilesAppBar.vue @@ -251,9 +251,7 @@ export default { }, $_ocAppBar_clearTrashbinButtonText() { - return this.selectedFiles.length < 1 - ? this.$gettext('Empty trash bin') - : this.$gettext('Delete') + return this.selectedFiles.length < 1 ? this.$gettext('Empty') : this.$gettext('Delete') }, showBreadcrumb() { @@ -638,13 +636,13 @@ export default { .clearTrashBin() .then(() => { this.showMessage({ - title: this.$gettext('Trash bin was successfully emptied') + title: this.$gettext('All deleted files were removed') }) this.removeFilesFromTrashbin(this.activeFiles) }) .catch(error => { this.showMessage({ - title: this.$gettext("Trash bin couldn't be emptied"), + title: this.$gettext('Could not delete files'), desc: error.message, status: 'danger' }) diff --git a/apps/files/src/components/Trashbin.vue b/apps/files/src/components/Trashbin.vue index a3b55075fe3..a85fa49fd6b 100644 --- a/apps/files/src/components/Trashbin.vue +++ b/apps/files/src/components/Trashbin.vue @@ -31,7 +31,7 @@ :is-desc="fileSortDirectionDesc" @click="toggleSort('deleteTimestampMoment')" > - + Deletion Time @@ -57,7 +57,7 @@ diff --git a/apps/files/src/default.js b/apps/files/src/default.js index 51f3c341ab1..7cb72e570a3 100644 --- a/apps/files/src/default.js +++ b/apps/files/src/default.js @@ -107,7 +107,7 @@ const navItems = [ } }, { - name: $gettext('Trash bin'), + name: $gettext('Deleted files'), iconMaterial: 'delete', enabled(capabilities) { if (capabilities && capabilities.dav) { diff --git a/apps/files/src/store/actions.js b/apps/files/src/store/actions.js index cc6071a02fd..67481b272c1 100644 --- a/apps/files/src/store/actions.js +++ b/apps/files/src/store/actions.js @@ -438,7 +438,7 @@ export default { context.dispatch( 'showMessage', { - title: $gettext('Loading trash bin failed…'), + title: $gettext('Loading list of deleted files has failed…'), status: 'danger' }, { root: true } @@ -456,7 +456,7 @@ export default { context.dispatch( 'showMessage', { - title: $gettext('Loading trash bin failed…'), + title: $gettext('Loading list of deleted files has failed…'), desc: e.message, status: 'danger' }, diff --git a/changelog/unreleased/change-wording-trashbin b/changelog/unreleased/change-wording-trashbin new file mode 100644 index 00000000000..00cc135bd1a --- /dev/null +++ b/changelog/unreleased/change-wording-trashbin @@ -0,0 +1,6 @@ +Change: Rename "trash bin" to "deleted files" + +We've renamed the "trash bin" to the more appropriate wording "deleted files". + +https://github.com/owncloud/phoenix/pull/4071 +https://github.com/owncloud/product/issues/231 diff --git a/tests/acceptance/features/webUITrashbin/trashbinDelete.feature b/tests/acceptance/features/webUITrashbin/trashbinDelete.feature index dbc2854e484..453558c94ec 100644 --- a/tests/acceptance/features/webUITrashbin/trashbinDelete.feature +++ b/tests/acceptance/features/webUITrashbin/trashbinDelete.feature @@ -119,7 +119,7 @@ Feature: files and folders can be deleted from the trashbin @issue-product-139 Scenario: Clear trashbin When the user clears the trashbin - Then the success message with header "Trash bin was successfully emptied" should be displayed on the webUI + Then the success message with header "All deleted files were removed" should be displayed on the webUI And the trashbin should be empty on the webUI @skipOnOC10 @@ -127,6 +127,6 @@ Feature: files and folders can be deleted from the trashbin # after the issue is fixed delete this scenario and use the one above Scenario: Clear trashbin When the user clears the trashbin - Then the error message with header "Trash bin couldn't be emptied" should be displayed on the webUI + Then the error message with header "Could not delete files" should be displayed on the webUI And file "lorem.txt" should be listed on the webUI And folder "simple-folder" should be listed on the webUI