π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Extract strings
Neeraj Gupta7c9160478dee
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dartindex 23ea9c5e20..265e4819b3 100644--- a/mobile/lib/generated/intl/messages_en.dart+++ b/mobile/lib/generated/intl/messages_en.dart@@ -1342,6 +1342,10 @@ class MessageLookup extends MessageLookupByLibrary {"sparkleSuccess": MessageLookupByLibrary.simpleMessage("β¨ Success"),"startBackup": MessageLookupByLibrary.simpleMessage("Start backup"),"status": MessageLookupByLibrary.simpleMessage("Status"),+ "stopCastingBody": MessageLookupByLibrary.simpleMessage(+ "Do you want to stop casting?"),+ "stopCastingTitle":+ MessageLookupByLibrary.simpleMessage("Stop casting"),"storage": MessageLookupByLibrary.simpleMessage("Storage"),"storageBreakupFamily": MessageLookupByLibrary.simpleMessage("Family"),"storageBreakupYou": MessageLookupByLibrary.simpleMessage("You"),diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dartindex d55ab17959..a142fb78ec 100644--- a/mobile/lib/generated/l10n.dart+++ b/mobile/lib/generated/l10n.dart@@ -8643,6 +8643,26 @@ class S {args: [],);}++ /// `Stop casting`+ String get stopCastingTitle {+ return Intl.message(+ 'Stop casting',+ name: 'stopCastingTitle',+ desc: '',+ args: [],+ );+ }++ /// `Do you want to stop casting?`+ String get stopCastingBody {+ return Intl.message(+ 'Do you want to stop casting?',+ name: 'stopCastingBody',+ desc: '',+ args: [],+ );+ }}class AppLocalizationDelegate extends LocalizationsDelegate<S> {diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arbindex 72afd2a4b3..f365f50e86 100644--- a/mobile/lib/l10n/intl_en.arb+++ b/mobile/lib/l10n/intl_en.arb@@ -1220,5 +1220,7 @@"connectToDevice": "Connect to device","autoCastDialogBody": "You'll see available Cast devices here.","autoCastiOSPermission": "Make sure Local Network permissions are turned on for the Ente Photos app, in Settings.",- "noDeviceFound": "No device found"+ "noDeviceFound": "No device found",+ "stopCastingTitle": "Stop casting",+ "stopCastingBody": "Do you want to stop casting?"}\ No newline at end of filediff --git a/mobile/lib/ui/cast/auto.dart b/mobile/lib/ui/cast/auto.dartindex ee5974f00c..aed8ee0a50 100644--- a/mobile/lib/ui/cast/auto.dart+++ b/mobile/lib/ui/cast/auto.dart@@ -113,8 +113,6 @@ class _AutoCastDialogState extends State<AutoCastDialog> {BuildContext context,Object castDevice,) async {- // sleep for 10 seconds- await Future.delayed(const Duration(seconds: 10));await castService.connectDevice(context,castDevice,diff --git a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dartindex 489d5478ec..0fc20ab1eb 100644--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart@@ -863,10 +863,10 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {if (castService.getActiveSessions().isNotEmpty) {await showChoiceDialog(context,- title: "Stop casting",- firstButtonLabel: "Yes",- secondButtonLabel: "No",- body: "Do you want to stop casting?",+ title: S.of(context).stopCastingTitle,+ firstButtonLabel: S.of(context).yes,+ secondButtonLabel: S.of(context).no,+ body: S.of(context).stopCastingBody,firstButtonOnTap: () async {gw.revokeAllTokens().ignore();await castService.closeActiveCasts();@@ -884,7 +884,6 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {return const CastChooseDialog();},);- _logger.info("Cast result: $result");if (result == null) {return;}diff --git a/mobile/plugins/ente_cast_normal/lib/src/service.dart b/mobile/plugins/ente_cast_normal/lib/src/service.dartindex 1f98fa7464..04c501666a 100644--- a/mobile/plugins/ente_cast_normal/lib/src/service.dart+++ b/mobile/plugins/ente_cast_normal/lib/src/service.dart@@ -39,8 +39,6 @@ class CastServiceImpl extends CastService {session.stateStream.listen((state) {if (state == CastSessionState.connected) {- const snackBar = SnackBar(content: Text('Connected'));- ScaffoldMessenger.of(context).showSnackBar(snackBar);debugPrint("Send request to pair");session.sendMessage(_pairRequestNamespace, {});} else if (state == CastSessionState.closed) {