Skip to content

armgit / ente

Public Imported from GitHub
0

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

Make login memory count programmable

laurenspriem612b2d9273f5
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index d829f114c7..72b17bd548 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -1189,7 +1189,14 @@
"didYouKnow": "Did you know?",
"loadingMessage": "Loading your photos...",
"loadMessage1": "You can share your subscription with your family",
- "loadMessage2": "We have preserved over 500 million memories so far",
+ "loadMessage2": "We have preserved over {memoriesCountInMillions} million memories so far",
+ "@loadMessage2": {
+ "placeholders": {
+ "memoriesCountInMillions": {
+ "type": "int"
+ }
+ }
+ },
"loadMessage3": "We keep 3 copies of your data, one in an underground fallout shelter",
"loadMessage4": "All our apps are open source",
"loadMessage5": "Our source code and cryptography have been externally audited",
diff --git a/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart b/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart
index 37ad4437a8..bdab975be9 100644
--- a/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart
@@ -31,6 +31,8 @@ class LoadingPhotosWidget extends StatefulWidget {
}
class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
+ static const int _preservedMemoriesCountInMillions = 500;
+
late StreamSubscription<SyncStatusUpdate> _firstImportEvent;
StreamSubscription<LocalImportProgressEvent>? _importProgressEvent;
int _currentPage = 0;
@@ -280,7 +282,11 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
void _setupLoadingMessages(BuildContext context) {
_messages.add(AppLocalizations.of(context).loadMessage1);
- _messages.add(AppLocalizations.of(context).loadMessage2);
+ _messages.add(
+ AppLocalizations.of(context).loadMessage2(
+ memoriesCountInMillions: _preservedMemoriesCountInMillions,
+ ),
+ );
_messages.add(AppLocalizations.of(context).loadMessage3);
_messages.add(AppLocalizations.of(context).loadMessage4);
_messages.add(AppLocalizations.of(context).loadMessage5);