π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Extract strings
Neeraj Gupta93cc5cc8a29d
diff --git a/mobile/lib/generated/intl/messages_en.dart b/mobile/lib/generated/intl/messages_en.dartindex cfbe9ae799..ef911f2689 100644--- a/mobile/lib/generated/intl/messages_en.dart+++ b/mobile/lib/generated/intl/messages_en.dart@@ -474,6 +474,10 @@ class MessageLookup extends MessageLookupByLibrary {"blog": MessageLookupByLibrary.simpleMessage("Blog"),"cachedData": MessageLookupByLibrary.simpleMessage("Cached data"),"calculating": MessageLookupByLibrary.simpleMessage("Calculating..."),+ "canNotOpenBody": MessageLookupByLibrary.simpleMessage(+ "Sorry, this album cannot be opened in the app."),+ "canNotOpenTitle":+ MessageLookupByLibrary.simpleMessage("Cannot open this album"),"canNotUploadToAlbumsOwnedByOthers":MessageLookupByLibrary.simpleMessage("Can not upload to albums owned by others"),diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dartindex b5d5c166fc..dbdcb4f862 100644--- a/mobile/lib/generated/l10n.dart+++ b/mobile/lib/generated/l10n.dart@@ -1480,6 +1480,26 @@ class S {);}+ /// `Cannot open this album`+ String get canNotOpenTitle {+ return Intl.message(+ 'Cannot open this album',+ name: 'canNotOpenTitle',+ desc: '',+ args: [],+ );+ }++ /// `Sorry, this album cannot be opened in the app.`+ String get canNotOpenBody {+ return Intl.message(+ 'Sorry, this album cannot be opened in the app.',+ name: 'canNotOpenBody',+ desc: '',+ args: [],+ );+ }+/// `Please note`String get disableDownloadWarningTitle {return Intl.message(diff --git a/mobile/lib/l10n/intl_en.arb b/mobile/lib/l10n/intl_en.arbindex 3d317b7e7a..dac62c7f72 100644--- a/mobile/lib/l10n/intl_en.arb+++ b/mobile/lib/l10n/intl_en.arb@@ -185,6 +185,8 @@},"allowAddPhotosDescription": "Allow people with the link to also add photos to the shared album.","passwordLock": "Password lock",+ "canNotOpenTitle": "Cannot open this album",+ "canNotOpenBody": "Sorry, this album cannot be opened in the app.","disableDownloadWarningTitle": "Please note","disableDownloadWarningBody": "Viewers can still take screenshots or save a copy of your photos using external tools","allowDownloads": "Allow downloads",diff --git a/mobile/lib/ui/tabs/home_widget.dart b/mobile/lib/ui/tabs/home_widget.dartindex 578300500b..87dbb27315 100644--- a/mobile/lib/ui/tabs/home_widget.dart+++ b/mobile/lib/ui/tabs/home_widget.dart@@ -26,6 +26,7 @@ import 'package:photos/events/tab_changed_event.dart';import 'package:photos/events/trigger_logout_event.dart';import 'package:photos/events/user_logged_out_event.dart';import "package:photos/generated/l10n.dart";+import "package:photos/l10n/l10n.dart";import "package:photos/models/collection/collection.dart";import 'package:photos/models/collection/collection_items.dart';import "package:photos/models/file/file.dart";@@ -54,6 +55,7 @@ import "package:photos/ui/home/loading_photos_widget.dart";import 'package:photos/ui/home/start_backup_hook_widget.dart';import 'package:photos/ui/notification/update/change_log_page.dart';import "package:photos/ui/settings/app_update_dialog.dart";+import "package:photos/ui/settings/general_section_widget.dart";import "package:photos/ui/settings_page.dart";import "package:photos/ui/tabs/shared_collections_tab.dart";import "package:photos/ui/tabs/user_collections_tab.dart";@@ -282,12 +284,12 @@ class _HomeWidgetState extends State<HomeWidget> {if (!publicUrl!.enableDownload) {await showErrorDialog(context,- "Cannot open this album",- "Sorry, this album cannot be opened in the app.",+ context.l10n.canNotOpenTitle,+ context.l10n.canNotOpenBody,);return;}- if (publicUrl!.passwordEnabled) {+ if (publicUrl.passwordEnabled) {await showTextInputDialog(context,title: S.of(context).enterPassword,