Browse Source

l10n: NewSharedCollectionsGallery strings

Neeraj Gupta 2 years ago
parent
commit
1d2adb55a9

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

@@ -168,6 +168,8 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Allow adding photos"),
         "allowDownloads":
             MessageLookupByLibrary.simpleMessage("Allow downloads"),
+        "allowPeopleToAddPhotos":
+            MessageLookupByLibrary.simpleMessage("Allow people to add photos"),
         "and": MessageLookupByLibrary.simpleMessage("and"),
         "androidIosWebDesktop":
             MessageLookupByLibrary.simpleMessage("Android, iOS, Web, Desktop"),
@@ -265,6 +267,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "collaboratorsCanAddPhotosAndVideosToTheSharedAlbum":
             MessageLookupByLibrary.simpleMessage(
                 "Collaborators can add photos and videos to the shared album."),
+        "collectEventPhotos":
+            MessageLookupByLibrary.simpleMessage("Collect event photos"),
         "collectPhotos": MessageLookupByLibrary.simpleMessage("Collect photos"),
         "confirm": MessageLookupByLibrary.simpleMessage("Confirm"),
         "confirm2FADisable": MessageLookupByLibrary.simpleMessage(
@@ -582,6 +586,8 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Privacy Policy"),
         "privateBackups":
             MessageLookupByLibrary.simpleMessage("Private backups"),
+        "privateSharing":
+            MessageLookupByLibrary.simpleMessage("Private sharing"),
         "publicLinkEnabled":
             MessageLookupByLibrary.simpleMessage("Public link enabled"),
         "raiseTicket": MessageLookupByLibrary.simpleMessage("Raise ticket"),
@@ -680,7 +686,11 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Set password"),
         "setupComplete": MessageLookupByLibrary.simpleMessage("Setup complete"),
         "shareALink": MessageLookupByLibrary.simpleMessage("Share a link"),
+        "shareAnAlbumNow":
+            MessageLookupByLibrary.simpleMessage("Share an album now"),
         "shareMyVerificationID": m23,
+        "shareOnlyWithThePeopleYouWant": MessageLookupByLibrary.simpleMessage(
+            "Share only with the people you want"),
         "shareTextConfirmOthersVerificationID": m24,
         "shareTextRecommendUsingEnte": MessageLookupByLibrary.simpleMessage(
             "Download ente so we can easily share original quality photos and videos\n\nhttps://ente.io/#download"),
@@ -784,6 +794,9 @@ class MessageLookup extends MessageLookupByLibrary {
         "upgrade": MessageLookupByLibrary.simpleMessage("Upgrade"),
         "usableReferralStorageInfo": MessageLookupByLibrary.simpleMessage(
             "Usable storage is limited by your current plan. Excess claimed storage will automatically become usable when you upgrade your plan."),
+        "usePublicLinksForPeopleNotOnEnte":
+            MessageLookupByLibrary.simpleMessage(
+                "Use public links for people not on ente"),
         "useRecoveryKey":
             MessageLookupByLibrary.simpleMessage("Use recovery key"),
         "verificationId":

+ 60 - 0
lib/generated/l10n.dart

@@ -4642,6 +4642,66 @@ class S {
       args: [],
     );
   }
+
+  /// `Private sharing`
+  String get privateSharing {
+    return Intl.message(
+      'Private sharing',
+      name: 'privateSharing',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Share only with the people you want`
+  String get shareOnlyWithThePeopleYouWant {
+    return Intl.message(
+      'Share only with the people you want',
+      name: 'shareOnlyWithThePeopleYouWant',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Use public links for people not on ente`
+  String get usePublicLinksForPeopleNotOnEnte {
+    return Intl.message(
+      'Use public links for people not on ente',
+      name: 'usePublicLinksForPeopleNotOnEnte',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Allow people to add photos`
+  String get allowPeopleToAddPhotos {
+    return Intl.message(
+      'Allow people to add photos',
+      name: 'allowPeopleToAddPhotos',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Share an album now`
+  String get shareAnAlbumNow {
+    return Intl.message(
+      'Share an album now',
+      name: 'shareAnAlbumNow',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Collect event photos`
+  String get collectEventPhotos {
+    return Intl.message(
+      'Collect event photos',
+      name: 'collectEventPhotos',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 7 - 1
lib/l10n/intl_en.arb

@@ -665,5 +665,11 @@
   "backupFailed": "Backup failed",
   "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"
+  "pleaseGrantPermissions": "Please grant permissions",
+  "privateSharing": "Private sharing",
+  "shareOnlyWithThePeopleYouWant": "Share only with the people you want",
+  "usePublicLinksForPeopleNotOnEnte": "Use public links for people not on ente",
+  "allowPeopleToAddPhotos": "Allow people to add photos",
+  "shareAnAlbumNow": "Share an album now",
+  "collectEventPhotos": "Collect event photos"
 }

+ 12 - 11
lib/ui/new_shared_collections_gallery.dart

@@ -1,5 +1,6 @@
 import "package:flutter/material.dart";
 import "package:photos/core/constants.dart";
+import "package:photos/generated/l10n.dart";
 import "package:photos/theme/ente_theme.dart";
 import "package:photos/ui/collection_action_sheet.dart";
 import 'package:photos/ui/components/buttons/button_widget.dart';
@@ -44,24 +45,24 @@ class EmptyStateWidget extends StatelessWidget {
                   crossAxisAlignment: CrossAxisAlignment.start,
                   children: [
                     Text(
-                      "Private sharing",
+                      S.of(context).privateSharing,
                       style: textTheme.h3Bold,
                       textAlign: TextAlign.start,
                     ),
                     const SizedBox(height: 24),
                     Column(
                       mainAxisSize: MainAxisSize.min,
-                      children: const [
+                      children: [
                         EmptyStateItemWidget(
-                          "Share only with the people you want",
+                          S.of(context).shareOnlyWithThePeopleYouWant,
                         ),
-                        SizedBox(height: 12),
+                        const SizedBox(height: 12),
                         EmptyStateItemWidget(
-                          "Use public links for people not on ente",
+                          S.of(context).usePublicLinksForPeopleNotOnEnte,
                         ),
-                        SizedBox(height: 12),
+                        const SizedBox(height: 12),
                         EmptyStateItemWidget(
-                          "Allow people to add photos",
+                          S.of(context).allowPeopleToAddPhotos,
                         ),
                       ],
                     ),
@@ -76,7 +77,7 @@ class EmptyStateWidget extends StatelessWidget {
                   children: [
                     ButtonWidget(
                       buttonType: ButtonType.trailingIconPrimary,
-                      labelText: "Share an album now",
+                      labelText: S.of(context).shareAnAlbumNow,
                       icon: Icons.arrow_forward_outlined,
                       onTap: () async {
                         showCollectionActionSheet(
@@ -88,7 +89,7 @@ class EmptyStateWidget extends StatelessWidget {
                     const SizedBox(height: 6),
                     ButtonWidget(
                       buttonType: ButtonType.trailingIconSecondary,
-                      labelText: "Collect event photos",
+                      labelText: S.of(context).collectEventPhotos,
                       icon: Icons.add_photo_alternate_outlined,
                       onTap: () async {
                         showCollectionActionSheet(
@@ -100,10 +101,10 @@ class EmptyStateWidget extends StatelessWidget {
                     const SizedBox(height: 6),
                     ButtonWidget(
                       buttonType: ButtonType.trailingIconSecondary,
-                      labelText: "Invite your friends",
+                      labelText: S.of(context).inviteYourFriends,
                       icon: Icons.ios_share_outlined,
                       onTap: () async {
-                        shareText("Check out https://ente.io");
+                        shareText(S.of(context).shareTextRecommendUsingEnte);
                       },
                     ),
                   ],