Prechádzať zdrojové kódy

Extracted strings in 'Pick center point' sheet

ashilkn 2 rokov pred
rodič
commit
59d70f1dbb

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

@@ -783,6 +783,8 @@ class MessageLookup extends MessageLookupByLibrary {
         "photosAddedByYouWillBeRemovedFromTheAlbum":
             MessageLookupByLibrary.simpleMessage(
                 "Photos added by you will be removed from the album"),
+        "pickCenterPoint":
+            MessageLookupByLibrary.simpleMessage("Pick center point"),
         "playstoreSubscription":
             MessageLookupByLibrary.simpleMessage("PlayStore subscription"),
         "pleaseContactSupportAndWeWillBeHappyToHelp":
@@ -1141,6 +1143,8 @@ class MessageLookup extends MessageLookupByLibrary {
                 "Use public links for people not on ente"),
         "useRecoveryKey":
             MessageLookupByLibrary.simpleMessage("Use recovery key"),
+        "useSelectedPhoto":
+            MessageLookupByLibrary.simpleMessage("Use selected photo"),
         "verificationFailedPleaseTryAgain":
             MessageLookupByLibrary.simpleMessage(
                 "Verification failed, please try again"),

+ 20 - 0
lib/generated/l10n.dart

@@ -6608,6 +6608,26 @@ class S {
       args: [],
     );
   }
+
+  /// `Pick center point`
+  String get pickCenterPoint {
+    return Intl.message(
+      'Pick center point',
+      name: 'pickCenterPoint',
+      desc: '',
+      args: [],
+    );
+  }
+
+  /// `Use selected photo`
+  String get useSelectedPhoto {
+    return Intl.message(
+      'Use selected photo',
+      name: 'useSelectedPhoto',
+      desc: '',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 3 - 1
lib/l10n/intl_en.arb

@@ -890,5 +890,7 @@
   "locationTagFeatureDescription": "A location tag groups all photos that were taken within some radius of a photo",
   "galleryMemoryLimitInfo": "Up to 1000 memories shown in gallery",
   "save": "Save",
-  "centerPoint": "Center point"
+  "centerPoint": "Center point",
+  "pickCenterPoint": "Pick center point",
+  "useSelectedPhoto": "Use selected photo"
 }

+ 5 - 4
lib/ui/viewer/location/pick_center_point_widget.dart

@@ -4,6 +4,7 @@ import "package:flutter/material.dart";
 import "package:modal_bottom_sheet/modal_bottom_sheet.dart";
 import "package:photos/core/configuration.dart";
 import "package:photos/db/files_db.dart";
+import "package:photos/generated/l10n.dart";
 import "package:photos/models/file.dart";
 import "package:photos/models/file_load_result.dart";
 import "package:photos/models/local_entity_data.dart";
@@ -75,8 +76,8 @@ class PickCenterPointWidget extends StatelessWidget {
                     child: Column(
                       children: [
                         BottomOfTitleBarWidget(
-                          title: const TitleBarTitleWidget(
-                            title: "Pick center point",
+                          title: TitleBarTitleWidget(
+                            title: S.of(context).pickCenterPoint,
                           ),
                           caption: locationTagEntity.item.name,
                         ),
@@ -162,7 +163,7 @@ class PickCenterPointWidget extends StatelessWidget {
                                   key: ValueKey(value),
                                   isDisabled: !value,
                                   buttonType: ButtonType.neutral,
-                                  labelText: "Use selected photo",
+                                  labelText: S.of(context).useSelectedPhoto,
                                   onTap: () async {
                                     final selectedFile =
                                         selectedFiles.files.first;
@@ -176,7 +177,7 @@ class PickCenterPointWidget extends StatelessWidget {
                           ButtonWidget(
                             buttonType: ButtonType.secondary,
                             buttonAction: ButtonAction.cancel,
-                            labelText: "Cancel",
+                            labelText: S.of(context).cancel,
                             onTap: () async {
                               Navigator.of(context).pop();
                             },