π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][locker] Clarify delete confirmation copy (#12881)
Aman Rajfb1b52f5b1ed
diff --git a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dartindex 67fad539ad..acd71c016a 100644--- a/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart+++ b/mobile/apps/locker/lib/ui/viewer/actions/file_selection_overlay_bar.dart@@ -757,11 +757,11 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {final confirmation = await showDeleteConfirmationSheet(context,- title: context.strings.areYouSure,- body: context.strings.deleteMultipleFilesDialogBody(+ title: context.strings.moveToTrashQuestion,+ body: context.strings.itemsWillBeDeletedFromAllCollections(count: ownedFiles.length,),- deleteButtonLabel: context.strings.yesDeleteFiles(+ deleteButtonLabel: context.strings.deleteItemCount(count: ownedFiles.length,),illustration: LockerBottomSheetIllustration.fileDelete,diff --git a/mobile/apps/locker/lib/utils/file_actions.dart b/mobile/apps/locker/lib/utils/file_actions.dartindex a9f5870904..6a4ba2073e 100644--- a/mobile/apps/locker/lib/utils/file_actions.dart+++ b/mobile/apps/locker/lib/utils/file_actions.dart@@ -284,9 +284,9 @@ class FileActions {}) async {final confirmation = await showDeleteConfirmationSheet(context,- title: context.strings.areYouSure,- body: context.strings.deleteMultipleFilesDialogBody(count: 1),- deleteButtonLabel: context.strings.yesDeleteFiles(count: 1),+ title: context.strings.moveToTrashQuestion,+ body: context.strings.itemsWillBeDeletedFromAllCollections(count: 1),+ deleteButtonLabel: context.strings.deleteItemCount(count: 1),illustration: LockerBottomSheetIllustration.fileDelete,);@@ -338,9 +338,11 @@ class FileActions {final confirmation = await showDeleteConfirmationSheet(context,- title: context.strings.areYouSure,- body: context.strings.deleteMultipleFilesDialogBody(count: files.length),- deleteButtonLabel: context.strings.yesDeleteFiles(count: files.length),+ title: context.strings.moveToTrashQuestion,+ body: context.strings.itemsWillBeDeletedFromAllCollections(+ count: files.length,+ ),+ deleteButtonLabel: context.strings.deleteItemCount(count: files.length),illustration: LockerBottomSheetIllustration.fileDelete,);diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arbindex 3e3e6910dd..a4aa3b0fe6 100644--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb@@ -1038,16 +1038,6 @@}}},- "deleteMultipleFilesDialogBody": "{count, plural, one{{count} item} other{{count} items}} will be deleted permanently.",- "@deleteMultipleFilesDialogBody": {- "description": "Confirmation message body for deleting multiple items",- "placeholders": {- "count": {- "type": "int",- "example": "3"- }- }- },"deleteNotSupportedForSharedFiles": "Delete is not supported for shared files","deleteOnDeviceFiles": "Delete on device files","deletePhotos": "Delete photos",@@ -2103,6 +2093,15 @@},"itemsShowTheNumberOfDaysRemainingBeforePermanentDeletion": "Items show the number of days remaining before permanent deletion","itemsStored": "Items stored",+ "itemsWillBeDeletedFromAllCollections": "{count, plural, one{This item will be deleted from all collections. You can recover it from Trash.} other{These items will be deleted from all collections. You can recover them from Trash.}}",+ "@itemsWillBeDeletedFromAllCollections": {+ "description": "Confirmation message explaining that deleted items leave every collection and remain recoverable from Trash.",+ "placeholders": {+ "count": {+ "type": "int"+ }+ }+ },"itemsWillBeRemovedFromAlbum": "Selected items will be removed from this album","itLooksLikeSomethingWentWrongPleaseRetryAfterSome": "It looks like something went wrong. Please retry after some time. If the error persists, please contact our support team.","@itLooksLikeSomethingWentWrongPleaseRetryAfterSome": {@@ -2675,6 +2674,7 @@"moveSelectedPhotosToOneDate": "Move selected photos to one date","moveToAlbum": "Move to album","moveToHiddenAlbum": "Move to hidden album",+ "moveToTrashQuestion": "Move to Trash?","movingFilesToAlbum": "Moving files to album...","muteAudio": "Mute audio","name": "Name",@@ -4834,16 +4834,6 @@}}},- "yesDeleteFiles": "Yes, delete {count, plural, one{item} other{items}}",- "@yesDeleteFiles": {- "description": "Button label for confirming deletion of one or more items",- "placeholders": {- "count": {- "type": "int",- "example": "3"- }- }- },"yesDiscardChanges": "Yes, discard changes","yesIgnore": "Yes, ignore","yesLogout": "Yes, logout",