Преглед на файлове

l10n: extract ott_verification_page strings

Neeraj Gupta преди 2 години
родител
ревизия
882f28f1bf
променени са 4 файла, в които са добавени 71 реда и са изтрити 7 реда
  1. 8 0
      lib/generated/intl/messages_en.dart
  2. 50 0
      lib/generated/l10n.dart
  3. 6 1
      lib/l10n/intl_en.arb
  4. 7 6
      lib/ui/account/ott_verification_page.dart

+ 8 - 0
lib/generated/intl/messages_en.dart

@@ -29,6 +29,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "askDeleteReason": MessageLookupByLibrary.simpleMessage(
             "What is the main reason you are deleting your account?"),
         "cancel": MessageLookupByLibrary.simpleMessage("Cancel"),
+        "checkInboxAndSpamFolder": MessageLookupByLibrary.simpleMessage(
+            "Please check your inbox (and spam) to complete verification"),
         "confirmAccountDeletion":
             MessageLookupByLibrary.simpleMessage("Confirm Account Deletion"),
         "confirmDeletePrompt": MessageLookupByLibrary.simpleMessage(
@@ -88,12 +90,15 @@ class MessageLookup extends MessageLookupByLibrary {
         "recoverButton": MessageLookupByLibrary.simpleMessage("Recover"),
         "recoverySuccessful":
             MessageLookupByLibrary.simpleMessage("Recovery successful!"),
+        "resendEmail": MessageLookupByLibrary.simpleMessage("Resend email"),
         "selectReason": MessageLookupByLibrary.simpleMessage("Select reason"),
         "sendEmail": MessageLookupByLibrary.simpleMessage("Send email"),
         "somethingWentWrongPleaseTryAgain":
             MessageLookupByLibrary.simpleMessage(
                 "Something went wrong, please try again"),
         "sorry": MessageLookupByLibrary.simpleMessage("Sorry"),
+        "tapToEnterCode":
+            MessageLookupByLibrary.simpleMessage("Tap to enter code"),
         "terminate": MessageLookupByLibrary.simpleMessage("Terminate"),
         "terminateSession":
             MessageLookupByLibrary.simpleMessage("Terminate session?"),
@@ -104,6 +109,9 @@ class MessageLookup extends MessageLookupByLibrary {
         "thisWillLogYouOutOfThisDevice": MessageLookupByLibrary.simpleMessage(
             "This will log you out of this device!"),
         "verify": MessageLookupByLibrary.simpleMessage("Verify"),
+        "verifyEmail": MessageLookupByLibrary.simpleMessage("Verify email"),
+        "weveSentAMailTo":
+            MessageLookupByLibrary.simpleMessage("We\'ve sent a mail to"),
         "yourAccountHasBeenDeleted": MessageLookupByLibrary.simpleMessage(
             "Your account has been deleted")
       };

+ 50 - 0
lib/generated/l10n.dart

@@ -541,6 +541,56 @@ class S {
       args: [],
     );
   }
+
+  /// `Verify email`
+  String get verifyEmail {
+    return Intl.message(
+      'Verify email',
+      name: 'verifyEmail',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Please check your inbox (and spam) to complete verification`
+  String get checkInboxAndSpamFolder {
+    return Intl.message(
+      'Please check your inbox (and spam) to complete verification',
+      name: 'checkInboxAndSpamFolder',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Tap to enter code`
+  String get tapToEnterCode {
+    return Intl.message(
+      'Tap to enter code',
+      name: 'tapToEnterCode',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Resend email`
+  String get resendEmail {
+    return Intl.message(
+      'Resend email',
+      name: 'resendEmail',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `We've sent a mail to`
+  String get weveSentAMailTo {
+    return Intl.message(
+      'We\'ve sent a mail to',
+      name: 'weveSentAMailTo',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 6 - 1
lib/l10n/intl_en.arb

@@ -53,5 +53,10 @@
   "enterYourRecoveryKey": "Enter your recovery key",
   "noRecoveryKey": "No recovery key?",
   "sorry": "Sorry",
-  "noRecoveryKeyNoDecryption": "Due to the nature of our end-to-end encryption protocol, your data cannot be decrypted without your password or recovery key"
+  "noRecoveryKeyNoDecryption": "Due to the nature of our end-to-end encryption protocol, your data cannot be decrypted without your password or recovery key",
+  "verifyEmail": "Verify email",
+  "checkInboxAndSpamFolder": "Please check your inbox (and spam) to complete verification",
+  "tapToEnterCode": "Tap to enter code",
+  "resendEmail": "Resend email",
+  "weveSentAMailTo": "We've sent a mail to"
 }

+ 7 - 6
lib/ui/account/ott_verification_page.dart

@@ -1,5 +1,6 @@
 import 'package:flutter/material.dart';
 import 'package:photos/ente_theme_data.dart';
+import "package:photos/generated/l10n.dart";
 import 'package:photos/services/user_service.dart';
 import 'package:photos/ui/common/dynamic_fab.dart';
 import 'package:step_progress_indicator/step_progress_indicator.dart';
@@ -64,7 +65,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
       floatingActionButton: DynamicFAB(
         isKeypadOpen: isKeypadOpen,
         isFormValid: _verificationCodeController.text.isNotEmpty,
-        buttonText: 'Verify',
+        buttonText: S.of(context).verify,
         onPressedFunction: () {
           if (widget.isChangeEmail) {
             UserService.instance.changeEmail(
@@ -93,7 +94,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
             Padding(
               padding: const EdgeInsets.fromLTRB(20, 30, 20, 15),
               child: Text(
-                'Verify email',
+                S.of(context).verifyEmail,
                 style: Theme.of(context).textTheme.headline4,
               ),
             ),
@@ -114,7 +115,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
                                   .subtitle1!
                                   .copyWith(fontSize: 14),
                               children: [
-                                const TextSpan(text: "We've sent a mail to "),
+                                TextSpan(text: S.of(context).weveSentAMailTo),
                                 TextSpan(
                                   text: widget.email,
                                   style: TextStyle(
@@ -128,7 +129,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
                           ),
                         ),
                         Text(
-                          'Please check your inbox (and spam) to complete verification',
+                          S.of(context).checkInboxAndSpamFolder,
                           style: Theme.of(context)
                               .textTheme
                               .subtitle1!
@@ -150,7 +151,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
                 style: Theme.of(context).textTheme.subtitle1,
                 decoration: InputDecoration(
                   filled: true,
-                  hintText: 'Tap to enter code',
+                  hintText: S.of(context).tapToEnterCode,
                   contentPadding: const EdgeInsets.all(15),
                   border: UnderlineInputBorder(
                     borderSide: BorderSide.none,
@@ -183,7 +184,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
                       );
                     },
                     child: Text(
-                      "Resend email",
+                      S.of(context).resendEmail,
                       style: Theme.of(context).textTheme.subtitle1!.copyWith(
                             fontSize: 14,
                             decoration: TextDecoration.underline,