Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Extract string

Neeraj Gupta6854d2885a99
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dart
index 3948b43928..c6dc0032ab 100644
--- a/mobile/lib/generated/intl/messages_en.dart
+++ b/mobile/lib/generated/intl/messages_en.dart
@@ -143,6 +143,8 @@ class MessageLookup extends MessageLookupByLibrary {
static String m45(toEmail) => "Please send the logs to \n${toEmail}";
+ static String m73(folderName) => "Processing ${folderName}...";
+
static String m46(storeName) => "Rate us on ${storeName}";
static String m47(storageInGB) =>
@@ -938,6 +940,8 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Loading your photos..."),
"loadingModel":
MessageLookupByLibrary.simpleMessage("Downloading models..."),
+ "loadingYourPhotos":
+ MessageLookupByLibrary.simpleMessage("Loading your photos..."),
"localGallery": MessageLookupByLibrary.simpleMessage("Local gallery"),
"localSyncErrorMessage": MessageLookupByLibrary.simpleMessage(
"Looks like something went wrong since local photos sync is taking more time than expected. Please reach out to our support team"),
@@ -1182,6 +1186,7 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Private backups"),
"privateSharing":
MessageLookupByLibrary.simpleMessage("Private sharing"),
+ "processingImport": m73,
"publicLinkCreated":
MessageLookupByLibrary.simpleMessage("Public link created"),
"publicLinkEnabled":
diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dart
index 88dd6dee42..d1ff4bdeb0 100644
--- a/mobile/lib/generated/l10n.dart
+++ b/mobile/lib/generated/l10n.dart
@@ -9564,6 +9564,26 @@ class S {
args: [],
);
}
+
+ /// `Loading your photos...`
+ String get loadingYourPhotos {
+ return Intl.message(
+ 'Loading your photos...',
+ name: 'loadingYourPhotos',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Processing {folderName}...`
+ String processingImport(Object folderName) {
+ return Intl.message(
+ 'Processing $folderName...',
+ name: 'processingImport',
+ desc: '',
+ args: [folderName],
+ );
+ }
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arb
index 7b33ac28d0..c57c8b7e3a 100644
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@ -1322,5 +1322,7 @@
"showPerson": "Show person",
"sort": "Sort",
"mostRecent": "Most recent",
- "mostRelevant": "Most relevant"
+ "mostRelevant": "Most relevant",
+ "loadingYourPhotos": "Loading your photos...",
+ "processingImport": "Processing {folderName}..."
}
\ No newline at end of file
diff --git a/mobile/lib/ui/home/loading_photos_widget.dart b/mobile/lib/ui/home/loading_photos_widget.dart
index 1af16c991f..2980fd34bb 100644
--- a/mobile/lib/ui/home/loading_photos_widget.dart
+++ b/mobile/lib/ui/home/loading_photos_widget.dart
@@ -27,7 +27,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
late StreamSubscription<SyncStatusUpdate> _firstImportEvent;
late StreamSubscription<LocalImportProgressEvent> _importProgressEvent;
int _currentPage = 0;
- String _loadingMessage = "Loading your photos...";
+ late String _loadingMessage;
final PageController _pageController = PageController(
initialPage: 0,
);
@@ -38,6 +38,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
@override
void initState() {
super.initState();
+ _loadingMessage = S.of(context).loadingYourPhotos;
Future.delayed(const Duration(seconds: 60), () {
oneMinuteOnScreen.value = true;
});
@@ -60,7 +61,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
});
_importProgressEvent =
Bus.instance.on<LocalImportProgressEvent>().listen((event) {
- _loadingMessage = 'Processing ${event.folderName}...';
+ _loadingMessage = S.of(context).processingImport(event.folderName);
if (mounted) {
setState(() {});
}