Przeglądaj źródła

l10n: AlbumParticipantsPage strings

Neeraj Gupta 2 lat temu
rodzic
commit
fa81ff5d26

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

@@ -39,7 +39,9 @@ class MessageLookup extends MessageLookupByLibrary {
         "addANewEmail": MessageLookupByLibrary.simpleMessage("Add a new email"),
         "addCollaborator":
             MessageLookupByLibrary.simpleMessage("Add collaborator"),
+        "addMore": MessageLookupByLibrary.simpleMessage("Add more"),
         "addViewer": MessageLookupByLibrary.simpleMessage("Add viewer"),
+        "albumOwner": MessageLookupByLibrary.simpleMessage("Owner"),
         "and": MessageLookupByLibrary.simpleMessage("and"),
         "askDeleteReason": MessageLookupByLibrary.simpleMessage(
             "What is the main reason you are deleting your account?"),
@@ -53,6 +55,7 @@ class MessageLookup extends MessageLookupByLibrary {
             "Please check your inbox (and spam) to complete verification"),
         "codeCopiedToClipboard":
             MessageLookupByLibrary.simpleMessage("Code copied to clipboard"),
+        "collaborator": MessageLookupByLibrary.simpleMessage("Collaborator"),
         "collaboratorsCanAddPhotosAndVideosToTheSharedAlbum":
             MessageLookupByLibrary.simpleMessage(
                 "Collaborators can add photos and videos to the shared album."),
@@ -251,10 +254,12 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Verifying recovery key..."),
         "viewRecoveryKey":
             MessageLookupByLibrary.simpleMessage("View recovery key"),
+        "viewer": MessageLookupByLibrary.simpleMessage("Viewer"),
         "weakStrength": MessageLookupByLibrary.simpleMessage("Weak"),
         "welcomeBack": MessageLookupByLibrary.simpleMessage("Welcome back!"),
         "weveSentAMailTo":
             MessageLookupByLibrary.simpleMessage("We\'ve sent a mail to"),
+        "you": MessageLookupByLibrary.simpleMessage("You"),
         "yourAccountHasBeenDeleted": MessageLookupByLibrary.simpleMessage(
             "Your account has been deleted")
       };

+ 50 - 0
lib/generated/l10n.dart

@@ -1397,6 +1397,56 @@ class S {
       args: [],
     );
   }
+
+  /// `Owner`
+  String get albumOwner {
+    return Intl.message(
+      'Owner',
+      name: 'albumOwner',
+      desc: 'This is the role of the album owner',
+      args: [],
+    );
+  }
+
+  /// `You`
+  String get you {
+    return Intl.message(
+      'You',
+      name: 'you',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Collaborator`
+  String get collaborator {
+    return Intl.message(
+      'Collaborator',
+      name: 'collaborator',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Add more`
+  String get addMore {
+    return Intl.message(
+      'Add more',
+      name: 'addMore',
+      desc: 'This is the button text to add more collaborators/viewers',
+      args: [],
+    );
+  }
+
+  /// `Viewer`
+  String get viewer {
+    return Intl.message(
+      'Viewer',
+      name: 'viewer',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 12 - 1
lib/l10n/intl_en.arb

@@ -176,5 +176,16 @@
   "addANewEmail": "Add a new email",
   "orPickAnExistingOne": "Or pick an existing one",
   "collaboratorsCanAddPhotosAndVideosToTheSharedAlbum": "Collaborators can add photos and videos to the shared album.",
-  "enterEmail": "Enter email"
+  "enterEmail": "Enter email",
+  "albumOwner": "Owner",
+  "@albumOwner": {
+    "description": "This is the role of the album owner"
+  },
+  "you": "You",
+  "collaborator": "Collaborator",
+  "addMore": "Add more",
+  "@addMore": {
+    "description": "This is the button text to add more collaborators/viewers"
+  },
+  "viewer": "Viewer"
 }

+ 15 - 12
lib/ui/sharing/album_participants_page.dart

@@ -1,6 +1,7 @@
 import 'package:flutter/material.dart';
 import 'package:photos/core/configuration.dart';
 import 'package:photos/extensions/list.dart';
+import "package:photos/generated/l10n.dart";
 import 'package:photos/models/collection.dart';
 import 'package:photos/theme/ente_theme.dart';
 import 'package:photos/ui/components/captioned_text_widget.dart';
@@ -95,14 +96,14 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                     children: [
                       Column(
                         children: [
-                          const MenuSectionTitle(
-                            title: "Owner",
+                          MenuSectionTitle(
+                            title: S.of(context).albumOwner,
                             iconData: Icons.admin_panel_settings_outlined,
                           ),
                           MenuItemWidget(
                             captionedTextWidget: CaptionedTextWidget(
                               title: isOwner
-                                  ? "You"
+                                  ? S.of(context).you
                                   : widget.collection.owner?.email ?? '',
                               makeTextBold: isOwner,
                             ),
@@ -130,8 +131,8 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
               delegate: SliverChildBuilderDelegate(
                 (context, index) {
                   if (index == 0 && (isOwner || collaborators.isNotEmpty)) {
-                    return const MenuSectionTitle(
-                      title: "Collaborator",
+                    return MenuSectionTitle(
+                      title: S.of(context).collaborator,
                       iconData: Icons.edit_outlined,
                     );
                   } else if (index > 0 && index <= collaborators.length) {
@@ -146,7 +147,7 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                         MenuItemWidget(
                           captionedTextWidget: CaptionedTextWidget(
                             title: isSameAsLoggedInUser
-                                ? "You"
+                                ? S.of(context).you
                                 : currentUser.email,
                             makeTextBold: isSameAsLoggedInUser,
                           ),
@@ -182,8 +183,8 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                     return MenuItemWidget(
                       captionedTextWidget: CaptionedTextWidget(
                         title: collaborators.isNotEmpty
-                            ? "Add more"
-                            : "Add collaborator",
+                            ? S.of(context).addMore
+                            : S.of(context).addCollaborator,
                         makeTextBold: true,
                       ),
                       leadingIcon: Icons.add_outlined,
@@ -207,8 +208,8 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
               delegate: SliverChildBuilderDelegate(
                 (context, index) {
                   if (index == 0 && (isOwner || viewers.isNotEmpty)) {
-                    return const MenuSectionTitle(
-                      title: "Viewer",
+                    return MenuSectionTitle(
+                      title: S.of(context).viewer,
                       iconData: Icons.photo_outlined,
                     );
                   } else if (index > 0 && index <= viewers.length) {
@@ -222,7 +223,7 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                         MenuItemWidget(
                           captionedTextWidget: CaptionedTextWidget(
                             title: isSameAsLoggedInUser
-                                ? "You"
+                                ? S.of(context).you
                                 : currentUser.email,
                             makeTextBold: isSameAsLoggedInUser,
                           ),
@@ -257,7 +258,9 @@ class _AlbumParticipantsPageState extends State<AlbumParticipantsPage> {
                   } else if (index == (1 + viewers.length) && isOwner) {
                     return MenuItemWidget(
                       captionedTextWidget: CaptionedTextWidget(
-                        title: viewers.isNotEmpty ? "Add more" : "Add viewer",
+                        title: viewers.isNotEmpty
+                            ? S.of(context).addMore
+                            : S.of(context).addViewer,
                         makeTextBold: true,
                       ),
                       leadingIcon: Icons.add_outlined,