Browse Source

Text/prompt cleanup

- Capitalize S in Shortcuts, since this is Apple's proper Shortcuts
- Rephrase prompts/confirmations for clarity and brevity
- Lowercase "bolus" in the name of the shortcut
Auggie Fisher 1 year ago
parent
commit
7163e8ec00

+ 1 - 1
FreeAPS/Sources/Modules/ShortcutsConfig/View/ShortcutsConfigView.swift

@@ -22,7 +22,7 @@ extension ShortcutsConfig {
 
                 Section(header: Text("Options", tableName: "ShorcutsDetail")) {
                     Toggle(
-                        String(localized: "Allow bolusing with shortcuts", table: "ShortcutsDetail"),
+                        String(localized: "Allow bolusing with Shortcuts", table: "ShortcutsDetail"),
                         isOn: $state.allowBolusByShortcuts
                     )
                 }

+ 1 - 1
FreeAPS/Sources/Shortcuts/AppShortcuts.swift

@@ -6,7 +6,7 @@ import Foundation
         AppShortcut(
             intent: BolusIntent(),
             phrases: [
-                "\(.applicationName) Bolus",
+                "\(.applicationName) bolus",
                 "Enacts a \(.applicationName) Bolus"
             ]
         )

+ 1 - 1
FreeAPS/Sources/Shortcuts/Bolus/BolusIntent.swift

@@ -25,7 +25,7 @@ import Swinject
         /// A preferred approach would be to just block negatives and not specify an upperBound here, since it is implemented elsewhere
         inclusiveRange: (lowerBound: 0, upperBound: 200),
         requestValueDialog: IntentDialog(LocalizedStringResource(
-            "What is the value of the bolus amount in insulin units?",
+            "Bolus amount (units of insulin)?",
             table: "ShortcutsDetail"
         ))
     ) var bolusQuantity: Double

+ 1 - 1
FreeAPS/Sources/Shortcuts/Bolus/BolusIntentRequest.swift

@@ -9,7 +9,7 @@ import Foundation
         // Block boluses if they are disabled
         case .notAllowed:
             return LocalizedStringResource(
-                "Bolusing is not allowed with shortcuts.",
+                "Bolusing via Shortcuts is disabled in Trio settings.",
                 table: "ShortcutsDetail"
             )