فهرست منبع

Change all min/max settings to say 'Minimum' and 'Maximum', text adjustments

Deniz Cengiz 1 سال پیش
والد
کامیت
773b2f606d

+ 32 - 2
Trio/Sources/Localizations/Main/Localizable.xcstrings

@@ -7309,6 +7309,16 @@
         }
       }
     },
+    "%@ %@ / %@ %@/%@ = %@ %@" : {
+      "localizations" : {
+        "en" : {
+          "stringUnit" : {
+            "state" : "new",
+            "value" : "%1$@ %2$@ / %3$@ %4$@/%5$@ = %6$@ %7$@"
+          }
+        }
+      }
+    },
     "%@ %%" : {
       "localizations" : {
         "bg" : {
@@ -136922,6 +136932,7 @@
     },
     "Max Bolus" : {
       "comment" : "Max setting",
+      "extractionState" : "stale",
       "localizations" : {
         "bg" : {
           "stringUnit" : {
@@ -139984,6 +139995,9 @@
         }
       }
     },
+    "Maximum amount of active carbs considered by the algorithm." : {
+
+    },
     "Maximum amount of carbs still available if no absorption is detected." : {
       "comment" : "Mini hint for Remaining Carbs Cap",
       "localizations" : {
@@ -140085,7 +140099,17 @@
         }
       }
     },
+    "Maximum Basal Rate" : {
+
+    },
+    "Maximum Bolus" : {
+
+    },
+    "Maximum Carbs on Board (COB)" : {
+      "comment" : "Max COB"
+    },
     "Maximum Carbs On Board (COB) allowed." : {
+      "extractionState" : "stale",
       "localizations" : {
         "bg" : {
           "stringUnit" : {
@@ -140494,6 +140518,9 @@
         }
       }
     },
+    "Maximum Insulin on Board (IOB)" : {
+      "comment" : "Max IOB"
+    },
     "Maximum Meal Absorption Time" : {
       "localizations" : {
         "bg" : {
@@ -158766,7 +158793,7 @@
         }
       }
     },
-    "Other third-party services, like Apple Health or Tidepool, can later be set up in the settings menu." : {
+    "Other third-party services, like Apple Health or Tidepool, can be added later through the settings menu." : {
 
     },
     "Our strong recommendation is to " : {
@@ -211250,6 +211277,9 @@
         }
       }
     },
+    "This setting helps prevent delivering too much insulin at once. It’s typically a value close to the amount you might need for a very high blood sugar and the biggest meal of your life combined." : {
+
+    },
     "This setting helps the system estimate how much glucose your body is absorbing, even when it's not immediately visible in your glucose data, ensuring more accurate insulin dosing during carb absorption." : {
       "localizations" : {
         "bg" : {
@@ -238833,7 +238863,7 @@
         }
       }
     },
-    "You can use Nightscout to import existing therapy settings, or only set it up now but configure settings from scratch." : {
+    "You can use Nightscout to import your existing therapy settings, or if you prefer, you can only connect to Nightscout, and configure therapy settings from scratch." : {
 
     },
     "You have certain rights regarding your information, including:" : {

+ 11 - 8
Trio/Sources/Modules/GeneralSettings/View/UnitsLimitsSettingsRootView.swift

@@ -36,12 +36,12 @@ extension UnitsLimitsSettings {
                         get: { selectedVerboseHint },
                         set: {
                             selectedVerboseHint = $0.map { AnyView($0) }
-                            hintLabel = String(localized: "Max IOB", comment: "Max IOB")
+                            hintLabel = String(localized: "Maximum Insulin on Board (IOB)", comment: "Max IOB")
                         }
                     ),
                     units: state.units,
                     type: .decimal("maxIOB"),
-                    label: String(localized: "Max IOB", comment: "Max IOB"),
+                    label: String(localized: "Maximum Insulin on Board (IOB)", comment: "Max IOB"),
                     miniHint: String(localized: "Maximum units of insulin allowed to be active."),
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
@@ -50,6 +50,9 @@ extension UnitsLimitsSettings {
                             "Warning: This must be greater than 0 for any automatic temporary basal rates or SMBs to be given."
                         ).bold()
                         Text(
+                            "This setting helps prevent delivering too much insulin at once. It’s typically a value close to the amount you might need for a very high blood sugar and the biggest meal of your life combined."
+                        )
+                        Text(
                             "This is the maximum amount of Insulin On Board (IOB) above profile basal rates from all sources - positive temporary basal rates, manual or meal boluses, and SMBs - that Trio is allowed to accumulate to address an above target glucose."
                         )
                         Text(
@@ -69,12 +72,12 @@ extension UnitsLimitsSettings {
                         get: { selectedVerboseHint },
                         set: {
                             selectedVerboseHint = $0.map { AnyView($0) }
-                            hintLabel = String(localized: "Max Bolus")
+                            hintLabel = String(localized: "Maximum Bolus")
                         }
                     ),
                     units: state.units,
                     type: .decimal("maxBolus"),
-                    label: String(localized: "Max Bolus"),
+                    label: String(localized: "Maximum Bolus"),
                     miniHint: String(localized: "Largest bolus of insulin allowed."),
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
@@ -100,7 +103,7 @@ extension UnitsLimitsSettings {
                     ),
                     units: state.units,
                     type: .decimal("maxBasal"),
-                    label: String(localized: "Max Basal Rate"),
+                    label: String(localized: "Maximum Basal Rate"),
                     miniHint: String(localized: "Largest basal rate allowed."),
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
@@ -122,13 +125,13 @@ extension UnitsLimitsSettings {
                         get: { selectedVerboseHint },
                         set: {
                             selectedVerboseHint = $0.map { AnyView($0) }
-                            hintLabel = String(localized: "Max COB", comment: "Max COB")
+                            hintLabel = String(localized: "Maximum Carbs on Board (COB)", comment: "Max COB")
                         }
                     ),
                     units: state.units,
                     type: .decimal("maxCOB"),
-                    label: String(localized: "Max COB", comment: "Max COB"),
-                    miniHint: String(localized: "Maximum Carbs On Board (COB) allowed."),
+                    label: String(localized: "Maximum Carbs on Board (COB)", comment: "Max COB"),
+                    miniHint: String(localized: "Maximum amount of active carbs considered by the algorithm."),
                     verboseHint:
                     VStack(alignment: .leading, spacing: 10) {
                         Text("Default: 120 grams of carbs").bold()

+ 2 - 2
Trio/Sources/Modules/Onboarding/View/OnboardingSteps/Nightscout/NightscoutSetupStepView.swift

@@ -32,14 +32,14 @@ struct NightscoutSetupStepView: View {
             }
 
             Text(
-                "You can use Nightscout to import existing therapy settings, or only set it up now but configure settings from scratch."
+                "You can use Nightscout to import your existing therapy settings, or if you prefer, you can only connect to Nightscout, and configure therapy settings from scratch."
             )
             .padding(.horizontal)
             .font(.footnote)
             .foregroundStyle(Color.secondary)
             .multilineTextAlignment(.leading)
 
-            Text("Other third-party services, like Apple Health or Tidepool, can later be set up in the settings menu.")
+            Text("Other third-party services, like Apple Health or Tidepool, can be added later through the settings menu.")
                 .padding(.horizontal)
                 .font(.footnote)
                 .foregroundStyle(Color.secondary)

+ 10 - 6
Trio/Sources/Modules/Onboarding/View/OnboardingView+Util.swift

@@ -365,10 +365,10 @@ enum DeliveryLimitSubstep: Int, CaseIterable, Identifiable {
 
     var title: String {
         switch self {
-        case .maxIOB: return String(localized: "Max IOB", comment: "Max IOB")
-        case .maxBolus: return String(localized: "Max Bolus")
-        case .maxBasal: return String(localized: "Max Basal Rate")
-        case .maxCOB: return String(localized: "Max COB", comment: "Max COB")
+        case .maxIOB: return String(localized: "Maximum Insulin on Board (IOB)", comment: "Max IOB")
+        case .maxBolus: return String(localized: "Maximum Bolus")
+        case .maxBasal: return String(localized: "Maximum Basal Rate")
+        case .maxCOB: return String(localized: "Maximum Carbs on Board (COB)", comment: "Max COB")
         case .minimumSafetyThreshold: return String(localized: "Minimum Safety Threshold")
         }
     }
@@ -378,7 +378,7 @@ enum DeliveryLimitSubstep: Int, CaseIterable, Identifiable {
         case .maxIOB: return String(localized: "Maximum units of insulin allowed to be active.")
         case .maxBolus: return String(localized: "Largest bolus of insulin allowed.")
         case .maxBasal: return String(localized: "Largest basal rate allowed.")
-        case .maxCOB: return String(localized: "Maximum Carbs On Board (COB) allowed.")
+        case .maxCOB: return String(localized: "Maximum amount of active carbs considered by the algorithm.")
         case .minimumSafetyThreshold: return String(localized: "Increase the safety threshold used to suspend insulin delivery.")
         }
     }
@@ -389,7 +389,11 @@ enum DeliveryLimitSubstep: Int, CaseIterable, Identifiable {
             return VStack(alignment: .leading, spacing: 8) {
                 Text(
                     "Note: This setting must be greater than 0 for any automatic insulin dosing by Trio."
-                ).bold().foregroundStyle(Color.primary)
+                ).bold().foregroundStyle(Color.orange)
+
+                Text(
+                    "This setting helps prevent delivering too much insulin at once. It’s typically a value close to the amount you might need for a very high blood sugar and the biggest meal of your life combined."
+                )
 
                 Text(
                     "This is the maximum amount of Insulin On Board (IOB) above profile basal rates from all sources - positive temporary basal rates, manual or meal boluses, and SMBs - that Trio is allowed to accumulate to address an above target glucose."