浏览代码

Change copy in custom radius feature's dialog

ashilkn 2 年之前
父节点
当前提交
12335c01c7

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

@@ -420,7 +420,6 @@ class MessageLookup extends MessageLookupByLibrary {
         "currentUsageIs":
             MessageLookupByLibrary.simpleMessage("Current usage is "),
         "custom": MessageLookupByLibrary.simpleMessage("Custom"),
-        "customRadius": MessageLookupByLibrary.simpleMessage("Custom radius"),
         "darkTheme": MessageLookupByLibrary.simpleMessage("Dark"),
         "dayToday": MessageLookupByLibrary.simpleMessage("Today"),
         "dayYesterday": MessageLookupByLibrary.simpleMessage("Yesterday"),
@@ -1003,8 +1002,10 @@ class MessageLookup extends MessageLookupByLibrary {
             MessageLookupByLibrary.simpleMessage("Session expired"),
         "setAPassword": MessageLookupByLibrary.simpleMessage("Set a password"),
         "setAs": MessageLookupByLibrary.simpleMessage("Set as"),
+        "setLabel": MessageLookupByLibrary.simpleMessage("Set"),
         "setPasswordTitle":
             MessageLookupByLibrary.simpleMessage("Set password"),
+        "setRadius": MessageLookupByLibrary.simpleMessage("Set radius"),
         "setupComplete": MessageLookupByLibrary.simpleMessage("Setup complete"),
         "share": MessageLookupByLibrary.simpleMessage("Share"),
         "shareALink": MessageLookupByLibrary.simpleMessage("Share a link"),

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

@@ -424,8 +424,6 @@ class MessageLookup extends MessageLookupByLibrary {
         "currentUsageIs":
             MessageLookupByLibrary.simpleMessage("El uso actual es "),
         "custom": MessageLookupByLibrary.simpleMessage("Personalizado"),
-        "customRadius":
-            MessageLookupByLibrary.simpleMessage("Radio personalizado"),
         "darkTheme": MessageLookupByLibrary.simpleMessage("Oscuro"),
         "dayToday": MessageLookupByLibrary.simpleMessage("Hoy"),
         "dayYesterday": MessageLookupByLibrary.simpleMessage("Ayer"),

+ 21 - 10
lib/generated/l10n.dart

@@ -6793,16 +6793,6 @@ class S {
     );
   }
 
-  /// `Custom radius`
-  String get customRadius {
-    return Intl.message(
-      'Custom radius',
-      name: 'customRadius',
-      desc: 'Custom radius for location tag',
-      args: [],
-    );
-  }
-
   /// `km`
   String get distanceInKMUnit {
     return Intl.message(
@@ -6934,6 +6924,27 @@ class S {
       args: [],
     );
   }
+
+  /// `Set`
+  String get setLabel {
+    return Intl.message(
+      'Set',
+      name: 'setLabel',
+      desc:
+          'Label of confirm button to add a new custom radius to the radius selector of a location tag',
+      args: [],
+    );
+  }
+
+  /// `Set radius`
+  String get setRadius {
+    return Intl.message(
+      'Set radius',
+      name: 'setRadius',
+      desc: 'Custom radius for location tag',
+      args: [],
+    );
+  }
 }
 
 class AppLocalizationDelegate extends LocalizationsDelegate<S> {

+ 7 - 6
lib/l10n/intl_en.arb

@@ -945,10 +945,6 @@
   "saving": "Saving...",
   "editsSaved": "Edits saved",
   "oopsCouldNotSaveEdits": "Oops, could not save edits",
-  "customRadius": "Custom radius",
-  "@customRadius": {
-    "description": "Custom radius for location tag"
-  },
   "distanceInKMUnit": "km",
   "@distanceInKMUnit": {
     "description": "Unit for distance in km"
@@ -970,5 +966,10 @@
   "appVersion": "Version: {versionValue}",
   "verifyIDLabel" : "Verify",
   "fileInfoAddDescHint": "Add a description...",
-  "editLocationTagTitle": "Edit location"
-}
+  "editLocationTagTitle": "Edit location",
+  "setLabel": "Set",
+  "@setLabel": {
+    "description": "Label of confirm button to add a new custom radius to the radius selector of a location tag"
+  },
+  "setRadius": "Set radius",
+}

+ 2 - 2
lib/ui/viewer/location/radius_picker_widget.dart

@@ -178,7 +178,7 @@ class _RadiusPickerWidgetState extends State<RadiusPickerWidget> {
   Future<void> _customRadiusOnTap() async {
     final result = await showTextInputDialog(
       context,
-      title: S.of(context).customRadius,
+      title: S.of(context).setRadius,
       onSubmit: (customRadius) async {
         final radius = double.tryParse(customRadius);
         if (radius != null) {
@@ -193,7 +193,7 @@ class _RadiusPickerWidgetState extends State<RadiusPickerWidget> {
           throw Exception("Radius is null");
         }
       },
-      submitButtonLabel: S.of(context).done,
+      submitButtonLabel: S.of(context).setLabel,
       textInputFormatter: [NumberWithDecimalInputFormatter(maxValue: 10000)],
       textInputType: const TextInputType.numberWithOptions(decimal: true),
       message: S.of(context).distanceInKMUnit,