π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
photos: localize decryption failure dialog
ashilkn87f87f7caab3
diff --git a/mobile/apps/photos/lib/utils/dialog_util.dart b/mobile/apps/photos/lib/utils/dialog_util.dartindex 3ea8869d14..64209bb06a 100644--- a/mobile/apps/photos/lib/utils/dialog_util.dart+++ b/mobile/apps/photos/lib/utils/dialog_util.dart@@ -212,18 +212,16 @@ Future<ButtonResult?> showGenericErrorDialog({Future<ButtonResult?> showDownloadDecryptionFailedDialog({required BuildContext context,}) async {- final title = pendingTranslation('Download failed');+ final title = context.strings.downloadFailed;return showDialogWidget(context: context,title: title,icon: Icons.error_outline_outlined,- body: pendingTranslation(- 'This item could not be downloaded. Please reach out to us so we can help.',- ),+ body: context.strings.downloadDecryptionFailedMessage,buttons: [ButtonWidget(buttonType: ButtonType.primary,- labelText: pendingTranslation('Contact us'),+ labelText: context.strings.contactUs,buttonAction: ButtonAction.first,isInAlert: true,onTap: () async {diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arbindex 47312b9870..ceaaa192a5 100644--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb@@ -804,6 +804,10 @@"provider": {}}},+ "contactUs": "Contact us",+ "@contactUs": {+ "description": "Button label that opens options to contact Ente support"+ },"continueInMailApp": "Continue in mail app","continueLabel": "Continue","@continueLabel": {@@ -1174,6 +1178,10 @@"doubleTapToViewHiddenCode": "You can double tap on an entry to view code","download": "Download","downloadApplicationUpdate": "Download update",+ "downloadDecryptionFailedMessage": "This item could not be downloaded. Please reach out to us so we can help.",+ "@downloadDecryptionFailedMessage": {+ "description": "Message shown in the viewer when a downloaded item cannot be decrypted"+ },"downloadFailed": "Download failed","downloading": "Downloading...","downloadingProgress": "Downloading... {percentage}%",