Pārlūkot izejas kodu

l10n: ManageIndividualParticipant strings

Neeraj Gupta 2 gadi atpakaļ
vecāks
revīzija
0e0b040492

+ 17 - 4
lib/generated/intl/messages_en.dart

@@ -20,10 +20,13 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
 class MessageLookup extends MessageLookupByLibrary {
   String get localeName => 'en';
 
-  static String m0(supportEmail) =>
+  static String m0(user) =>
+      "${user} will not be able to add more photos to this album\n\nThey will still be able to remove existing photos added by them";
+
+  static String m1(supportEmail) =>
       "Please drop an email to ${supportEmail} from your registered email address";
 
-  static String m1(passwordStrengthValue) =>
+  static String m2(passwordStrengthValue) =>
       "Password strength: ${passwordStrengthValue}";
 
   final messages = _notInlinedMessages(_notInlinedMessages);
@@ -41,6 +44,7 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Add collaborator"),
         "addMore": MessageLookupByLibrary.simpleMessage("Add more"),
         "addViewer": MessageLookupByLibrary.simpleMessage("Add viewer"),
+        "addedAs": MessageLookupByLibrary.simpleMessage("Added as"),
         "albumOwner": MessageLookupByLibrary.simpleMessage("Owner"),
         "and": MessageLookupByLibrary.simpleMessage("and"),
         "askDeleteReason": MessageLookupByLibrary.simpleMessage(
@@ -48,9 +52,12 @@ class MessageLookup extends MessageLookupByLibrary {
         "byClickingLogInIAgreeToThe": MessageLookupByLibrary.simpleMessage(
             "By clicking log in, I agree to the"),
         "cancel": MessageLookupByLibrary.simpleMessage("Cancel"),
+        "cannotAddMorePhotosAfterBecomingViewer": m0,
         "changeEmail": MessageLookupByLibrary.simpleMessage("Change email"),
         "changePasswordTitle":
             MessageLookupByLibrary.simpleMessage("Change password"),
+        "changePermissions":
+            MessageLookupByLibrary.simpleMessage("Change permissions?"),
         "checkInboxAndSpamFolder": MessageLookupByLibrary.simpleMessage(
             "Please check your inbox (and spam) to complete verification"),
         "codeCopiedToClipboard":
@@ -98,7 +105,7 @@ class MessageLookup extends MessageLookupByLibrary {
         "deleteRequestSLAText": MessageLookupByLibrary.simpleMessage(
             "Your request will be processed within 72 hours."),
         "doThisLater": MessageLookupByLibrary.simpleMessage("Do this later"),
-        "dropSupportEmail": m0,
+        "dropSupportEmail": m1,
         "email": MessageLookupByLibrary.simpleMessage("Email"),
         "encryption": MessageLookupByLibrary.simpleMessage("Encryption"),
         "encryptionKeys":
@@ -147,6 +154,7 @@ class MessageLookup extends MessageLookupByLibrary {
             "Kindly help us with this information"),
         "logInLabel": MessageLookupByLibrary.simpleMessage("Log in"),
         "lostDevice": MessageLookupByLibrary.simpleMessage("Lost device?"),
+        "manage": MessageLookupByLibrary.simpleMessage("Manage"),
         "moderateStrength": MessageLookupByLibrary.simpleMessage("Moderate"),
         "noPasswordWarningPart1": MessageLookupByLibrary.simpleMessage(
             "We don\'t store this password, so if you forget,"),
@@ -163,7 +171,7 @@ class MessageLookup extends MessageLookupByLibrary {
         "password": MessageLookupByLibrary.simpleMessage("Password"),
         "passwordChangedSuccessfully": MessageLookupByLibrary.simpleMessage(
             "Password changed successfully"),
-        "passwordStrength": m1,
+        "passwordStrength": m2,
         "pleaseSendAnEmailTo":
             MessageLookupByLibrary.simpleMessage("Please send an email to"),
         "pleaseTryAgain":
@@ -195,6 +203,9 @@ class MessageLookup extends MessageLookupByLibrary {
             "The current device is not powerful enough to verify your "),
         "recreatePasswordTitle":
             MessageLookupByLibrary.simpleMessage("Recreate password"),
+        "remove": MessageLookupByLibrary.simpleMessage("Remove"),
+        "removeParticipant":
+            MessageLookupByLibrary.simpleMessage("Remove participant"),
         "resendEmail": MessageLookupByLibrary.simpleMessage("Resend email"),
         "resetPasswordTitle":
             MessageLookupByLibrary.simpleMessage("Reset password"),
@@ -259,6 +270,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "welcomeBack": MessageLookupByLibrary.simpleMessage("Welcome back!"),
         "weveSentAMailTo":
             MessageLookupByLibrary.simpleMessage("We\'ve sent a mail to"),
+        "yesConvertToViewer":
+            MessageLookupByLibrary.simpleMessage("Yes, convert to viewer"),
         "you": MessageLookupByLibrary.simpleMessage("You"),
         "yourAccountHasBeenDeleted": MessageLookupByLibrary.simpleMessage(
             "Your account has been deleted")

+ 72 - 2
lib/generated/l10n.dart

@@ -1403,7 +1403,7 @@ class S {
     return Intl.message(
       'Owner',
       name: 'albumOwner',
-      desc: 'This is the role of the album owner',
+      desc: 'Role of the album owner',
       args: [],
     );
   }
@@ -1433,7 +1433,7 @@ class S {
     return Intl.message(
       'Add more',
       name: 'addMore',
-      desc: 'This is the button text to add more collaborators/viewers',
+      desc: 'Button text to add more collaborators/viewers',
       args: [],
     );
   }
@@ -1447,6 +1447,76 @@ class S {
       args: [],
     );
   }
+
+  /// `Remove`
+  String get remove {
+    return Intl.message(
+      'Remove',
+      name: 'remove',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Remove participant`
+  String get removeParticipant {
+    return Intl.message(
+      'Remove participant',
+      name: 'removeParticipant',
+      desc: 'menuSectionTitle for removing a participant',
+      args: [],
+    );
+  }
+
+  /// `Manage`
+  String get manage {
+    return Intl.message(
+      'Manage',
+      name: 'manage',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Added as`
+  String get addedAs {
+    return Intl.message(
+      'Added as',
+      name: 'addedAs',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Change permissions?`
+  String get changePermissions {
+    return Intl.message(
+      'Change permissions?',
+      name: 'changePermissions',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Yes, convert to viewer`
+  String get yesConvertToViewer {
+    return Intl.message(
+      'Yes, convert to viewer',
+      name: 'yesConvertToViewer',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `{user} will not be able to add more photos to this album\n\nThey will still be able to remove existing photos added by them`
+  String cannotAddMorePhotosAfterBecomingViewer(Object user) {
+    return Intl.message(
+      '$user will not be able to add more photos to this album\n\nThey will still be able to remove existing photos added by them',
+      name: 'cannotAddMorePhotosAfterBecomingViewer',
+      desc: '',
+      args: [user],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 13 - 3
lib/l10n/intl_en.arb

@@ -179,13 +179,23 @@
   "enterEmail": "Enter email",
   "albumOwner": "Owner",
   "@albumOwner": {
-    "description": "This is the role of the album owner"
+    "description": "Role of the album owner"
   },
   "you": "You",
   "collaborator": "Collaborator",
   "addMore": "Add more",
   "@addMore": {
-    "description": "This is the button text to add more collaborators/viewers"
+    "description": "Button text to add more collaborators/viewers"
   },
-  "viewer": "Viewer"
+  "viewer": "Viewer",
+  "remove": "Remove",
+  "removeParticipant": "Remove participant",
+  "@removeParticipant": {
+    "description": "menuSectionTitle for removing a participant"
+  },
+  "manage": "Manage",
+  "addedAs": "Added as",
+  "changePermissions": "Change permissions?",
+  "yesConvertToViewer": "Yes, convert to viewer",
+  "cannotAddMorePhotosAfterBecomingViewer": "{user} will not be able to add more photos to this album\n\nThey will still be able to remove existing photos added by them"
 }

+ 21 - 17
lib/ui/sharing/manage_album_participant.dart

@@ -1,4 +1,5 @@
 import 'package:flutter/material.dart';
+import "package:photos/generated/l10n.dart";
 import 'package:photos/models/collection.dart';
 import 'package:photos/services/collections_service.dart';
 import 'package:photos/theme/colors.dart';
@@ -52,8 +53,8 @@ class _ManageIndividualParticipantState
                   const SizedBox(
                     height: 12,
                   ),
-                  const TitleBarTitleWidget(
-                    title: "Manage",
+                  TitleBarTitleWidget(
+                    title: S.of(context).manage,
                   ),
                   Text(
                     widget.user.email.toString().trim(),
@@ -65,10 +66,10 @@ class _ManageIndividualParticipantState
               ),
             ),
             const SizedBox(height: 12),
-            const MenuSectionTitle(title: "Added as"),
+            MenuSectionTitle(title: S.of(context).addedAs),
             MenuItemWidget(
-              captionedTextWidget: const CaptionedTextWidget(
-                title: "Collaborator",
+              captionedTextWidget: CaptionedTextWidget(
+                title: S.of(context).collaborator,
               ),
               leadingIcon: Icons.edit_outlined,
               menuItemColor: getEnteColorScheme(context).fillFaint,
@@ -97,8 +98,8 @@ class _ManageIndividualParticipantState
               bgColor: getEnteColorScheme(context).fillFaint,
             ),
             MenuItemWidget(
-              captionedTextWidget: const CaptionedTextWidget(
-                title: "Viewer",
+              captionedTextWidget: CaptionedTextWidget(
+                title: S.of(context).viewer,
               ),
               leadingIcon: Icons.photo_outlined,
               leadingIconColor: getEnteColorScheme(context).strokeBase,
@@ -110,10 +111,12 @@ class _ManageIndividualParticipantState
                   : () async {
                       final actionResult = await showChoiceActionSheet(
                         context,
-                        title: "Change permissions?",
-                        firstButtonLabel: "Yes, convert to viewer",
-                        body:
-                            '${widget.user.email} will not be able to add more photos to this album\n\nThey will still be able to remove existing photos added by them',
+                        title: S.of(context).changePermissions,
+                        firstButtonLabel: S.of(context).yesConvertToViewer,
+                        body: S
+                            .of(context)
+                            .cannotAddMorePhotosAfterBecomingViewer(
+                                widget.user.email),
                         isCritical: true,
                       );
                       if (actionResult?.action != null) {
@@ -141,15 +144,16 @@ class _ManageIndividualParticipantState
                     },
               isTopBorderRadiusRemoved: true,
             ),
-            const MenuSectionDescriptionWidget(
-              content:
-                  "Collaborators can add photos and videos to the shared album.",
+            MenuSectionDescriptionWidget(
+              content: S
+                  .of(context)
+                  .collaboratorsCanAddPhotosAndVideosToTheSharedAlbum,
             ),
             const SizedBox(height: 24),
-            const MenuSectionTitle(title: "Remove participant"),
+            MenuSectionTitle(title: S.of(context).removeParticipant),
             MenuItemWidget(
-              captionedTextWidget: const CaptionedTextWidget(
-                title: "Remove",
+              captionedTextWidget: CaptionedTextWidget(
+                title: S.of(context).remove,
                 textColor: warning500,
                 makeTextBold: true,
               ),