Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][locker] Show trash retention notice (#14059)

Aaqil Fazile1c9ffbb028b
diff --git a/mobile/apps/locker/changes/trash-retention-notice.md b/mobile/apps/locker/changes/trash-retention-notice.md
new file mode 100644
index 0000000000..61343caa2b
--- /dev/null
+++ b/mobile/apps/locker/changes/trash-retention-notice.md
@@ -0,0 +1 @@
+- Added a 30-day deletion notice to Trash. (@fosszil)
diff --git a/mobile/apps/locker/lib/ui/pages/trash_page.dart b/mobile/apps/locker/lib/ui/pages/trash_page.dart
index 763b7a7d69..a488793795 100644
--- a/mobile/apps/locker/lib/ui/pages/trash_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/trash_page.dart
@@ -117,7 +117,7 @@ class _TrashPageState extends State<TrashPage> {
AppBarComponent(
title: context.strings.trash,
subtitle: hasTrashFiles
- ? context.strings.items(count: _trashFiles.length)
+ ? context.strings.trashAutoDeleteNotice
: null,
actions: hasTrashFiles
? [
diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
index 4af9c6585e..db79604a43 100644
--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb
+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
@@ -4549,6 +4549,7 @@
},
"totalSize": "Total size",
"trash": "Trash",
+ "trashAutoDeleteNotice": "Items in Trash are permanently deleted after 30 days",
"restoreOrPermanentlyDeleteItems": "Restore or permanently delete items",
"trashClearedSuccessfully": "Trash cleared successfully",
"trashCode": "Trash code?",