|
@@ -115,13 +115,13 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
}
|
|
|
|
|
|
Widget _getBody() {
|
|
|
- var passwordStrengthText = 'Weak';
|
|
|
+ var passwordStrengthText = S.of(context).weakStrength;
|
|
|
var passwordStrengthColor = Colors.redAccent;
|
|
|
if (_passwordStrength > kStrongPasswordStrengthThreshold) {
|
|
|
- passwordStrengthText = 'Strong';
|
|
|
+ passwordStrengthText = S.of(context).strongStrength;
|
|
|
passwordStrengthColor = Colors.greenAccent;
|
|
|
} else if (_passwordStrength > kMildPasswordStrengthThreshold) {
|
|
|
- passwordStrengthText = 'Moderate';
|
|
|
+ passwordStrengthText = S.of(context).moderateStrength;
|
|
|
passwordStrengthColor = Colors.orangeAccent;
|
|
|
}
|
|
|
return Column(
|
|
@@ -315,7 +315,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
padding:
|
|
|
const EdgeInsets.symmetric(horizontal: 24, vertical: 8),
|
|
|
child: Text(
|
|
|
- 'Password strength: $passwordStrengthText',
|
|
|
+ S.of(context).passwordStrength(passwordStrengthText),
|
|
|
style: TextStyle(
|
|
|
color: passwordStrengthColor,
|
|
|
fontWeight: FontWeight.w500,
|
|
@@ -372,11 +372,11 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
child: RichText(
|
|
|
text: TextSpan(
|
|
|
children: [
|
|
|
- const TextSpan(
|
|
|
- text: "I agree to the ",
|
|
|
+ TextSpan(
|
|
|
+ text: S.of(context).termsAgreePart1,
|
|
|
),
|
|
|
TextSpan(
|
|
|
- text: "terms of service",
|
|
|
+ text: S.of(context).termsOfService,
|
|
|
style: const TextStyle(
|
|
|
decoration: TextDecoration.underline,
|
|
|
),
|
|
@@ -385,8 +385,8 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
Navigator.of(context).push(
|
|
|
MaterialPageRoute(
|
|
|
builder: (BuildContext context) {
|
|
|
- return const WebPage(
|
|
|
- "Terms",
|
|
|
+ return WebPage(
|
|
|
+ S.of(context).termsOfServicesTitle,
|
|
|
"https://ente.io/terms",
|
|
|
);
|
|
|
},
|
|
@@ -394,9 +394,9 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
);
|
|
|
},
|
|
|
),
|
|
|
- const TextSpan(text: " and "),
|
|
|
+ TextSpan(text: ' ${S.of(context).and} '),
|
|
|
TextSpan(
|
|
|
- text: "privacy policy",
|
|
|
+ text: S.of(context).privacyPolicy,
|
|
|
style: const TextStyle(
|
|
|
decoration: TextDecoration.underline,
|
|
|
),
|
|
@@ -405,8 +405,8 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
Navigator.of(context).push(
|
|
|
MaterialPageRoute(
|
|
|
builder: (BuildContext context) {
|
|
|
- return const WebPage(
|
|
|
- "Privacy",
|
|
|
+ return WebPage(
|
|
|
+ S.of(context).privacyPolicyTitle,
|
|
|
"https://ente.io/privacy",
|
|
|
);
|
|
|
},
|
|
@@ -451,12 +451,11 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
child: RichText(
|
|
|
text: TextSpan(
|
|
|
children: [
|
|
|
- const TextSpan(
|
|
|
- text:
|
|
|
- "I understand that if I lose my password, I may lose my data since my data is ",
|
|
|
+ TextSpan(
|
|
|
+ text: S.of(context).ackPasswordLostWarningPart1,
|
|
|
),
|
|
|
TextSpan(
|
|
|
- text: "end-to-end encrypted",
|
|
|
+ text: S.of(context).endToEndEncrypted,
|
|
|
style: const TextStyle(
|
|
|
decoration: TextDecoration.underline,
|
|
|
),
|
|
@@ -465,8 +464,8 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
Navigator.of(context).push(
|
|
|
MaterialPageRoute(
|
|
|
builder: (BuildContext context) {
|
|
|
- return const WebPage(
|
|
|
- "Encryption",
|
|
|
+ return WebPage(
|
|
|
+ S.of(context).encryption,
|
|
|
"https://ente.io/architecture",
|
|
|
);
|
|
|
},
|
|
@@ -474,7 +473,9 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
|
|
|
);
|
|
|
},
|
|
|
),
|
|
|
- const TextSpan(text: " with ente"),
|
|
|
+ TextSpan(
|
|
|
+ text: " ${S.of(context).ackPasswordLostWarningPart2}",
|
|
|
+ ),
|
|
|
],
|
|
|
style: Theme.of(context)
|
|
|
.textTheme
|