Skip to content

armgit / ente

Public Imported from GitHub
0

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

Reuse stop sharing label in confirmation

Neeraj Guptaa09878bac435
diff --git a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart
index 0c4459519a..f67c516aa4 100644
--- a/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart
+++ b/mobile/apps/photos/lib/ui/sharing/library_sharing/library_sharing_sheets.dart
@@ -86,6 +86,8 @@ Future<bool> confirmDisableLibrarySharing({
content: Text(
sheetContext.strings.librarySharingDisableDescription(
recipient: recipientLabel,
+ stopSharingLabel:
+ sheetContext.strings.librarySharingStopSharing,
),
style: TextStyles.body.copyWith(color: colors.textLight),
),
diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
index 8953613970..89e23489d4 100644
--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb
+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb
@@ -2205,12 +2205,16 @@
"librarySharingAllCurrentAlbumsShared": "All your current albums are shared",
"librarySharingBannerDescription": "Share all your albums",
"librarySharingDisable": "Disable",
- "librarySharingDisableDescription": "Albums you have already shared will stay shared with {recipient}, including any new photos you add to them. New albums will not be shared automatically.\n\nTo stop sharing an album, tap it and select 'Stop sharing'",
+ "librarySharingDisableDescription": "Albums you have already shared will stay shared with {recipient}, including any new photos you add to them. New albums will not be shared automatically.\n\nTo stop sharing an album, tap it and select '{stopSharingLabel}'.",
"@librarySharingDisableDescription": {
"placeholders": {
"recipient": {
"type": "String",
"example": "Alex"
+ },
+ "stopSharingLabel": {
+ "type": "String",
+ "example": "Stop sharing"
}
}
},