Jelajahi Sumber

Extract some more strings

vishnukvmd 2 tahun lalu
induk
melakukan
1180804fb8

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

@@ -596,6 +596,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "generatingEncryptionKeys": MessageLookupByLibrary.simpleMessage(
             "Generating encryption keys..."),
         "googlePlayId": MessageLookupByLibrary.simpleMessage("Google Play ID"),
+        "grantPermission":
+            MessageLookupByLibrary.simpleMessage("Grant permission"),
         "hidden": MessageLookupByLibrary.simpleMessage("Hidden"),
         "hide": MessageLookupByLibrary.simpleMessage("Hide"),
         "howItWorks": MessageLookupByLibrary.simpleMessage("How it works"),

+ 10 - 0
lib/generated/l10n.dart

@@ -4653,6 +4653,16 @@ class S {
     );
   }
 
+  /// `Grant permission`
+  String get grantPermission {
+    return Intl.message(
+      'Grant permission',
+      name: 'grantPermission',
+      desc: '',
+      args: [],
+    );
+  }
+
   /// `Private sharing`
   String get privateSharing {
     return Intl.message(

+ 1 - 0
lib/l10n/intl_en.arb

@@ -667,6 +667,7 @@
   "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",
+  "grantPermission": "Grant permission",
   "privateSharing": "Private sharing",
   "shareOnlyWithThePeopleYouWant": "Share only with the people you want",
   "usePublicLinksForPeopleNotOnEnte": "Use public links for people not on ente",

+ 1 - 1
lib/ui/components/album_horizontal_list_widget.dart

@@ -62,7 +62,7 @@ class _AlbumHorizontalListWidgetState extends State<AlbumHorizontalListWidget> {
           builder: (context, snapshot) {
             if (snapshot.hasError) {
               _logger.severe("failed to fetch albums", snapshot.error);
-              return const Text("Something went wrong");
+              return Text(S.of(context).somethingWentWrong);
             } else if (snapshot.hasData) {
               if (snapshot.data!.isEmpty) {
                 return const SizedBox.shrink();

+ 1 - 1
lib/ui/home/grant_permissions_widget.dart

@@ -92,7 +92,7 @@ class GrantPermissionsWidget extends StatelessWidget {
           bottom: 16,
         ),
         child: OutlinedButton(
-          child: const Text("Grant permission"),
+          child: Text(S.of(context).grantPermission),
           onPressed: () async {
             final state = await PhotoManager.requestPermissionExtend();
             if (state == PermissionState.authorized ||

+ 1 - 1
lib/ui/shared_collections_gallery.dart

@@ -135,7 +135,7 @@ class _SharedCollectionGalleryState extends State<SharedCollectionGallery>
             snapshot.error,
             snapshot.stackTrace,
           );
-          return const Center(child: Text("Something went wrong."));
+          return Center(child: Text(S.of(context).somethingWentWrong));
         } else {
           return const EnteLoadingWidget();
         }