l10n: extract strings
This commit is contained in:
parent
3a766d3e68
commit
9b3dd35222
|
@ -382,6 +382,9 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
MessageLookupByLibrary.simpleMessage("end-to-end encrypted"),
|
||||
"endtoendEncryptedByDefault": MessageLookupByLibrary.simpleMessage(
|
||||
"End-to-end encrypted by default"),
|
||||
"enteCanEncryptAndPreserveFilesOnlyIfYouGrant":
|
||||
MessageLookupByLibrary.simpleMessage(
|
||||
"ente can encrypt and preserve files only if you grant access to them"),
|
||||
"enteSubscriptionPitch": MessageLookupByLibrary.simpleMessage(
|
||||
"ente preserves your memories, so they\'re always available to you, even if you lose your device."),
|
||||
"enteSubscriptionShareWithFamily": MessageLookupByLibrary.simpleMessage(
|
||||
|
@ -560,6 +563,8 @@ class MessageLookup extends MessageLookupByLibrary {
|
|||
"pleaseContactSupportAndWeWillBeHappyToHelp":
|
||||
MessageLookupByLibrary.simpleMessage(
|
||||
"Please contact support@ente.io and we will be happy to help!"),
|
||||
"pleaseGrantPermissions":
|
||||
MessageLookupByLibrary.simpleMessage("Please grant permissions"),
|
||||
"pleaseLoginAgain":
|
||||
MessageLookupByLibrary.simpleMessage("Please login again"),
|
||||
"pleaseSendAnEmailTo":
|
||||
|
|
|
@ -4622,6 +4622,26 @@ class S {
|
|||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `ente can encrypt and preserve files only if you grant access to them`
|
||||
String get enteCanEncryptAndPreserveFilesOnlyIfYouGrant {
|
||||
return Intl.message(
|
||||
'ente can encrypt and preserve files only if you grant access to them',
|
||||
name: 'enteCanEncryptAndPreserveFilesOnlyIfYouGrant',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
|
||||
/// `Please grant permissions`
|
||||
String get pleaseGrantPermissions {
|
||||
return Intl.message(
|
||||
'Please grant permissions',
|
||||
name: 'pleaseGrantPermissions',
|
||||
desc: '',
|
||||
args: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
||||
|
|
|
@ -663,5 +663,7 @@
|
|||
"upgrade": "Upgrade",
|
||||
"raiseTicket": "Raise ticket",
|
||||
"backupFailed": "Backup failed",
|
||||
"couldNotBackUpTryLater": "We could not backup your data.\nWe will retry later."
|
||||
"couldNotBackUpTryLater": "We could not backup your data.\nWe will retry later.",
|
||||
"enteCanEncryptAndPreserveFilesOnlyIfYouGrant": "ente can encrypt and preserve files only if you grant access to them",
|
||||
"pleaseGrantPermissions": "Please grant permissions"
|
||||
}
|
|
@ -2,6 +2,7 @@ import 'dart:io';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:photo_manager/photo_manager.dart';
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import 'package:photos/services/sync_service.dart';
|
||||
|
||||
class GrantPermissionsWidget extends StatelessWidget {
|
||||
|
@ -99,14 +100,14 @@ class GrantPermissionsWidget extends StatelessWidget {
|
|||
await SyncService.instance.onPermissionGranted(state);
|
||||
} else if (state == PermissionState.denied) {
|
||||
final AlertDialog alert = AlertDialog(
|
||||
title: const Text("Please grant permissions"),
|
||||
content: const Text(
|
||||
"ente can encrypt and preserve files only if you grant access to them",
|
||||
title: Text(S.of(context).pleaseGrantPermissions),
|
||||
content: Text(
|
||||
S.of(context).enteCanEncryptAndPreserveFilesOnlyIfYouGrant,
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
child: Text(
|
||||
"OK",
|
||||
S.of(context).ok,
|
||||
style: Theme.of(context).textTheme.subtitle1!.copyWith(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w700,
|
||||
|
|
Loading…
Reference in a new issue