π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: add l10n, routing changes
Prateek Sunalb2d02c6a26e1
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dartindex a737afaa2d..16f84068f9 100644--- a/mobile/lib/generated/intl/messages_en.dart+++ b/mobile/lib/generated/intl/messages_en.dart@@ -894,6 +894,7 @@ class MessageLookup extends MessageLookupByLibrary {"faceRecognition":MessageLookupByLibrary.simpleMessage("Face recognition"),"faces": MessageLookupByLibrary.simpleMessage("Faces"),+ "failed": MessageLookupByLibrary.simpleMessage("Failed"),"failedToApplyCode":MessageLookupByLibrary.simpleMessage("Failed to apply code"),"failedToCancel":@@ -1030,6 +1031,7 @@ class MessageLookup extends MessageLookupByLibrary {"indexedItems": MessageLookupByLibrary.simpleMessage("Indexed items"),"indexingIsPaused": MessageLookupByLibrary.simpleMessage("Indexing is paused. It will automatically resume when device is ready."),+ "ineligible": MessageLookupByLibrary.simpleMessage("Ineligible"),"info": MessageLookupByLibrary.simpleMessage("Info"),"insecureDevice":MessageLookupByLibrary.simpleMessage("Insecure device"),@@ -1363,7 +1365,9 @@ class MessageLookup extends MessageLookupByLibrary {"pinAlbum": MessageLookupByLibrary.simpleMessage("Pin album"),"pinLock": MessageLookupByLibrary.simpleMessage("PIN lock"),"playOnTv": MessageLookupByLibrary.simpleMessage("Play album on TV"),+ "playOriginal": MessageLookupByLibrary.simpleMessage("Play original"),"playStoreFreeTrialValidTill": m52,+ "playStream": MessageLookupByLibrary.simpleMessage("Play stream"),"playstoreSubscription":MessageLookupByLibrary.simpleMessage("PlayStore subscription"),"pleaseCheckYourInternetConnectionAndTryAgain":@@ -1410,13 +1414,15 @@ class MessageLookup extends MessageLookupByLibrary {MessageLookupByLibrary.simpleMessage("Private sharing"),"proceed": MessageLookupByLibrary.simpleMessage("Proceed"),"processed": MessageLookupByLibrary.simpleMessage("Processed"),+ "processing": MessageLookupByLibrary.simpleMessage("Processing"),"processingImport": m55,"processingVideos":- MessageLookupByLibrary.simpleMessage("Processing Videos"),+ MessageLookupByLibrary.simpleMessage("Processing videos"),"publicLinkCreated":MessageLookupByLibrary.simpleMessage("Public link created"),"publicLinkEnabled":MessageLookupByLibrary.simpleMessage("Public link enabled"),+ "queued": MessageLookupByLibrary.simpleMessage("Queued"),"quickLinks": MessageLookupByLibrary.simpleMessage("Quick links"),"radius": MessageLookupByLibrary.simpleMessage("Radius"),"raiseTicket": MessageLookupByLibrary.simpleMessage("Raise ticket"),@@ -1932,7 +1938,7 @@ class MessageLookup extends MessageLookupByLibrary {"videoInfo": MessageLookupByLibrary.simpleMessage("Video Info"),"videoSmallCase": MessageLookupByLibrary.simpleMessage("video"),"videoStreaming":- MessageLookupByLibrary.simpleMessage("Video Streaming"),+ MessageLookupByLibrary.simpleMessage("Video streaming"),"videos": MessageLookupByLibrary.simpleMessage("Videos"),"viewActiveSessions":MessageLookupByLibrary.simpleMessage("View active sessions"),diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dartindex 0856be15a4..7096abda62 100644--- a/mobile/lib/generated/l10n.dart+++ b/mobile/lib/generated/l10n.dart@@ -11131,20 +11131,20 @@ class S {);}- /// `Video Streaming`+ /// `Video streaming`String get videoStreaming {return Intl.message(- 'Video Streaming',+ 'Video streaming',name: 'videoStreaming',desc: '',args: [],);}- /// `Processing Videos`+ /// `Processing videos`String get processingVideos {return Intl.message(- 'Processing Videos',+ 'Processing videos',name: 'processingVideos',desc: '',args: [],@@ -11160,6 +11160,66 @@ class S {args: [],);}++ /// `Processing`+ String get processing {+ return Intl.message(+ 'Processing',+ name: 'processing',+ desc: '',+ args: [],+ );+ }++ /// `Queued`+ String get queued {+ return Intl.message(+ 'Queued',+ name: 'queued',+ desc: '',+ args: [],+ );+ }++ /// `Ineligible`+ String get ineligible {+ return Intl.message(+ 'Ineligible',+ name: 'ineligible',+ desc: '',+ args: [],+ );+ }++ /// `Failed`+ String get failed {+ return Intl.message(+ 'Failed',+ name: 'failed',+ desc: '',+ args: [],+ );+ }++ /// `Play stream`+ String get playStream {+ return Intl.message(+ 'Play stream',+ name: 'playStream',+ desc: '',+ args: [],+ );+ }++ /// `Play original`+ String get playOriginal {+ return Intl.message(+ 'Play original',+ name: 'playOriginal',+ desc: '',+ args: [],+ );+ }}class AppLocalizationDelegate extends LocalizationsDelegate<S> {diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arbindex 723600f013..46b814c91e 100644--- a/mobile/lib/l10n/intl_en.arb+++ b/mobile/lib/l10n/intl_en.arb@@ -1667,5 +1667,11 @@},"videoStreaming": "Video streaming","processingVideos": "Processing videos",- "streamDetails": "Stream details"+ "streamDetails": "Stream details",+ "processing": "Processing",+ "queued": "Queued",+ "ineligible": "Ineligible",+ "failed": "Failed",+ "playStream": "Play stream",+ "playOriginal": "Play original"}\ No newline at end of filediff --git a/mobile/lib/ui/settings/backup/backup_item_card.dart b/mobile/lib/ui/settings/backup/backup_item_card.dartindex dda6273bb3..d33032fe8b 100644--- a/mobile/lib/ui/settings/backup/backup_item_card.dart+++ b/mobile/lib/ui/settings/backup/backup_item_card.dart@@ -63,6 +63,7 @@ class _BackupItemCardState extends State<BackupItemCard> {context,FileWidget(widget.item.file,+ tagPrefix: "backups",),forceCustomPageRoute: true,);diff --git a/mobile/lib/ui/viewer/file/file_widget.dart b/mobile/lib/ui/viewer/file/file_widget.dartindex 4926b76b36..a38f576c37 100644--- a/mobile/lib/ui/viewer/file/file_widget.dart+++ b/mobile/lib/ui/viewer/file/file_widget.dart@@ -7,7 +7,7 @@ import "package:photos/ui/viewer/file/zoomable_live_image_new.dart";class FileWidget extends StatelessWidget {final EnteFile file;- final String? tagPrefix;+ final String tagPrefix;final Function(bool)? shouldDisableScroll;final Function(bool)? playbackCallback;final BoxDecoration? backgroundDecoration;@@ -18,7 +18,7 @@ class FileWidget extends StatelessWidget {this.autoPlay,this.shouldDisableScroll,this.playbackCallback,- this.tagPrefix,+ required this.tagPrefix,this.backgroundDecoration,super.key,});diff --git a/mobile/lib/ui/viewer/file/preview_status_widget.dart b/mobile/lib/ui/viewer/file/preview_status_widget.dartindex 8d47c2626a..375790a6b4 100644--- a/mobile/lib/ui/viewer/file/preview_status_widget.dart+++ b/mobile/lib/ui/viewer/file/preview_status_widget.dart@@ -3,6 +3,7 @@ import "dart:async";import "package:flutter/material.dart";import "package:photos/core/event_bus.dart";import "package:photos/events/preview_updated_event.dart";+import "package:photos/generated/l10n.dart";import "package:photos/models/file/file.dart";import "package:photos/models/preview/preview_item.dart";import "package:photos/models/preview/preview_item_status.dart";@@ -110,7 +111,7 @@ class _PreviewStatusWidgetState extends State<PreviewStatusWidget> {preview == null || preview!.status == PreviewItemStatus.uploaded? widget.onStreamChange: () {- Navigator.push(+ Navigator.pushReplacement(context,MaterialPageRoute(builder: (_) => const BackupStatusScreen(),@@ -165,16 +166,16 @@ class _PreviewStatusWidgetState extends State<PreviewStatusWidget> {),Text(isInProgress- ? "Processing"+ ? S.of(context).processing: isInQueue- ? "Queued"+ ? S.of(context).queued: isBeforeCutoffDate- ? "Ineligible"+ ? S.of(context).ineligible: isFailed- ? "Failed"+ ? S.of(context).failed: widget.isPreviewPlayer- ? "Play original"- : "Play stream",+ ? S.of(context).playOriginal+ : S.of(context).playStream,style: const TextStyle(fontSize: 12,fontWeight: FontWeight.w600,