Skip to content

Commit 0b485db

Browse files
committed
wip, use hardcoded appName to replace Loop
1 parent 44b25aa commit 0b485db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

MinimedKit/PumpManager/PumpOpsSession.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import Foundation
1010
import LoopKit
1111
import RileyLinkBLEKit
12-
12+
import SwiftUI
1313

1414
public protocol PumpOpsSessionDelegate: AnyObject {
1515
func pumpOpsSession(_ session: PumpOpsSession, didChange state: PumpState)
@@ -42,11 +42,13 @@ extension SetBolusError: LocalizedError {
4242
}
4343

4444
public var helpAnchor: String? {
45+
// ToDo: convert to @Environment(\.appName)
46+
let appName: String = "the app"
4547
switch self {
4648
case .certain(let error):
4749
return error.errorDescription
4850
case .uncertain:
49-
return LocalizedString("Loop sent a bolus command to the pump, but was unable to confirm that the pump received the command. For safety, Loop will assume the bolus was delivered. When Loop eventually fetches history from the pump, and the estimated bolus finish time is passed, Loop will update its records of delivery to match what the pump reports.", comment: "Help anchor for uncertain bolus")
51+
return String(format: LocalizedString("%1$@ sent a bolus command to the pump, but was unable to confirm that the pump received the command. For safety, %2$@ will assume the bolus was delivered. When %3$@ eventually fetches history from the pump, and the estimated bolus finish time is passed, %4$@ will update its records of delivery to match what the pump reports.", comment: "Help anchor for uncertain bolus (1: appName) (2: appName) (3: appName) (4: appName)"), appName, appName, appName, appName)
5052
}
5153
}
5254
}

0 commit comments

Comments
 (0)