Skip to content

Commit

Permalink
Merge pull request #148 from marionbarker/label_updates
Browse files Browse the repository at this point in the history
modify text to Open-iAPS
  • Loading branch information
bjornoleh authored May 5, 2024
2 parents c5194b0 + 6deaeff commit 593ce21
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Application/FreeAPSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import Swinject
init() {
debug(
.default,
"iAPS Started: v\(Bundle.main.releaseVersionNumber ?? "")(\(Bundle.main.buildVersionNumber ?? "")) [buildDate: \(Bundle.main.buildDate)] [buildExpires: \(Bundle.main.profileExpiration)]"
"Open-iAPS Started: v\(Bundle.main.releaseVersionNumber ?? "")(\(Bundle.main.buildVersionNumber ?? "")) [buildDate: \(Bundle.main.buildDate)] [buildExpires: \(Bundle.main.profileExpiration)]"
)
loadServices()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension AppleHealthKit {
HStack {
Image(systemName: "pencil.circle.fill")
Text(
"This allows iAPS to read from and write to Apple Heath. You must also give permissions in Settings > Health > Data Access. If you enter a glucose value into Apple Health, open iAPS to confirm it shows up."
"This allows Open-iAPS to read from and write to Apple Heath. You must also give permissions in Settings > Health > Data Access. If you enter a glucose value into Apple Health, open Open-iAPS to confirm it shows up."
)
.font(.caption)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ extension NightscoutConfig {
message: Text(
(fetchedErrors.first?.error ?? "").count < 4 ?
NSLocalizedString(
"\nNow please verify all of your new settings thoroughly:\n\n* Basal Settings\n * Carb Ratios\n * Glucose Targets\n * Insulin Sensitivities\n * DIA\n\n in iAPS Settings > Configuration.\n\nBad or invalid profile settings could have disatrous effects.",
"\nNow please verify all of your new settings thoroughly:\n\n* Basal Settings\n * Carb Ratios\n * Glucose Targets\n * Insulin Sensitivities\n * DIA\n\n in Open-iAPS Settings > Configuration.\n\nBad or invalid profile settings could have disatrous effects.",
comment: "Imported Profiles Alert"
) :
NSLocalizedString(fetchedErrors.first?.error ?? "", comment: "Import Error")
Expand All @@ -130,7 +130,7 @@ extension NightscoutConfig {

Section {
Toggle("Remote control", isOn: $state.allowAnnouncements)
} header: { Text("Allow Remote control of iAPS") }
} header: { Text("Allow Remote control of Open-iAPS") }
}
.onAppear(perform: configureView)
.navigationBarTitle("Nightscout Config")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extension NotificationsConfig {

if !systemLiveActivitySetting {
footer =
"Live activities are turned OFF in system settings. To enable live activities, go to Settings app -> iAPS -> Turn live Activities ON.\n\n" +
"Live activities are turned OFF in system settings. To enable live activities, go to Settings app -> Open-iAPS -> Turn live Activities ON.\n\n" +
footer
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extension PreferencesEditor {
displayName: NSLocalizedString("Max COB", comment: "Max COB"),
type: .decimal(keypath: \.maxCOB),
infoText: NSLocalizedString(
"The default of maxCOB is 120. (If someone enters more carbs in one or multiple entries, iAPS will cap COB to maxCOB and keep it at maxCOB until the carbs entered above maxCOB have shown to be absorbed. Essentially, this just limits UAM as a safety cap against weird COB calculations due to fluky data.)",
"The default of maxCOB is 120. (If someone enters more carbs in one or multiple entries, Open-iAPS will cap COB to maxCOB and keep it at maxCOB until the carbs entered above maxCOB have shown to be absorbed. Essentially, this just limits UAM as a safety cap against weird COB calculations due to fluky data.)",
comment: "Max COB"
),
settable: self
Expand Down Expand Up @@ -147,7 +147,7 @@ extension PreferencesEditor {
displayName: NSLocalizedString("Threshold Setting (mg/dl)", comment: "Threshold Setting"),
type: .decimal(keypath: \.threshold_setting),
infoText: NSLocalizedString(
"The default threshold in FAX depends on your current minimum BG target, as follows:\n\nIf your minimum BG target = 90 mg/dl -> threshold = 65 mg/dl,\n\nif minimum BG target = 100 mg/dl -> threshold = 70 mg/dl,\n\nminimum BG target = 110 mg/dl -> threshold = 75 mg/dl,\n\nand if minimum BG target = 130 mg/dl -> threshold = 85 mg/dl.\n\nThis setting allows you to change the default to a higher threshold for looping with dynISF. Valid values are 65 mg/dl<= Threshold Setting <= 120 mg/dl.",
"The default threshold in Open-iAPS depends on your current minimum BG target, as follows:\n\nIf your minimum BG target = 90 mg/dl -> threshold = 65 mg/dl,\n\nif minimum BG target = 100 mg/dl -> threshold = 70 mg/dl,\n\nminimum BG target = 110 mg/dl -> threshold = 75 mg/dl,\n\nand if minimum BG target = 130 mg/dl -> threshold = 85 mg/dl.\n\nThis setting allows you to change the default to a higher threshold for looping with dynISF. Valid values are 65 mg/dl<= Threshold Setting <= 120 mg/dl.",
comment: "Threshold Setting"
),
settable: self
Expand Down Expand Up @@ -237,7 +237,7 @@ extension PreferencesEditor {
displayName: NSLocalizedString("Enable UAM", comment: "Enable UAM"),
type: .boolean(keypath: \.enableUAM),
infoText: NSLocalizedString(
"With this option enabled, the SMB algorithm can recognize unannounced meals. This is helpful, if you forget to tell iAPS about your carbs or estimate your carbs wrong and the amount of entered carbs is wrong or if a meal with lots of fat and protein has a longer duration than expected. Without any carb entry, UAM can recognize fast glucose increasments caused by carbs, adrenaline, etc, and tries to adjust it with SMBs. This also works the opposite way: if there is a fast glucose decreasement, it can stop SMBs earlier.",
"With this option enabled, the SMB algorithm can recognize unannounced meals. This is helpful, if you forget to tell Open-iAPS about your carbs or estimate your carbs wrong and the amount of entered carbs is wrong or if a meal with lots of fat and protein has a longer duration than expected. Without any carb entry, UAM can recognize fast glucose increasments caused by carbs, adrenaline, etc, and tries to adjust it with SMBs. This also works the opposite way: if there is a fast glucose decreasement, it can stop SMBs earlier.",
comment: "Enable UAM"
),
settable: self
Expand Down Expand Up @@ -369,7 +369,7 @@ extension PreferencesEditor {
displayName: NSLocalizedString("Insulin Peak Time", comment: "Insulin Peak Time"),
type: .decimal(keypath: \.insulinPeakTime),
infoText: NSLocalizedString(
"Time of maximum blood glucose lowering effect of insulin, in minutes. Beware: Oref assumes for ultra-rapid (Lyumjev) & rapid-acting (Fiasp) curves minimal (35 & 50 min) and maximal (100 & 120 min) applicable insulinPeakTimes. Using a custom insulinPeakTime outside these bounds will result in issues with iAPS, longer loop calculations and possible red loops.",
"Time of maximum blood glucose lowering effect of insulin, in minutes. Beware: Oref assumes for ultra-rapid (Lyumjev) & rapid-acting (Fiasp) curves minimal (35 & 50 min) and maximal (100 & 120 min) applicable insulinPeakTimes. Using a custom insulinPeakTime outside these bounds will result in issues with Open-iAPS, longer loop calculations and possible red loops.",
comment: "Insulin Peak Time"
),
settable: self
Expand All @@ -378,7 +378,7 @@ extension PreferencesEditor {
displayName: NSLocalizedString("Skip Neutral Temps", comment: "Skip Neutral Temps"),
type: .boolean(keypath: \.skipNeutralTemps),
infoText: NSLocalizedString(
"Defaults to false, so that iAPS will set temps whenever it can, so it will be easier to see if the system is working, even when you are offline. This means iAPS will set a “neutral” temp (same as your default basal) if no adjustments are needed. This is an old setting for OpenAPS to have the options to minimise sounds and notifications from the 'rig', that may wake you up during the night.",
"Defaults to false, so that Open-iAPS will set temps whenever it can, so it will be easier to see if the system is working, even when you are offline. This means Open-iAPS will set a “neutral” temp (same as your default basal) if no adjustments are needed. This is an old setting for OpenAPS to have the options to minimise sounds and notifications from the 'rig', that may wake you up during the night.",
comment: "Skip Neutral Temps"
),
settable: self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extension PreferencesEditor {

var body: some View {
Form {
Section(header: Text("iAPS").textCase(nil)) {
Section(header: Text("Open-iAPS").textCase(nil)) {
Picker("Glucose units", selection: $state.unitsIndex) {
Text("mg/dL").tag(0)
Text("mmol/L").tag(1)
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Services/Calendar/CalendarManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ final class BaseCalendarManager: CalendarManager, Injectable {
let title = glucoseText + " " + directionText + " " + deltaText

event.title = title
event.notes = "iAPS"
event.notes = "Open-iAPS"
event.startDate = Date()
event.endDate = Date(timeIntervalSinceNow: 60 * 10)
event.calendar = calendar
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Services/WatchManager/GarminManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ extension BaseGarminManager: IQUIOverrideDelegate {
debug(.apsManager, NSLocalizedString("Garmin is not available", comment: ""))
let messageCont = MessageContent(
content: NSLocalizedString(
"The app Garmin Connect must be installed to use for iAPS.\n Go to App Store to download it",
"The app Garmin Connect must be installed to use for Open-iAPS.\n Go to App Store to download it",
comment: ""
),
type: .warning
Expand Down
4 changes: 2 additions & 2 deletions FreeAPS/Sources/Shortcuts/State/ListStateIntent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import Foundation

@available(iOS 16.0, *) struct ListStateIntent: AppIntent {
// Title of the action in the Shortcuts app
static var title: LocalizedStringResource = "List last state available with iAPS"
static var title: LocalizedStringResource = "List last state available with Open-iAPS"

var stateIntent = StateIntentRequest()

// Description of the action in the Shortcuts app
static var description = IntentDescription(
"Allow to list the last Blood Glucose, trends, IOB and COB available in iAPS"
"Allow to list the last Blood Glucose, trends, IOB and COB available in Open-iAPS"
)

static var parameterSummary: some ParameterSummary {
Expand Down
2 changes: 1 addition & 1 deletion FreeAPS/Sources/Shortcuts/State/StateIntentRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum StateIntentError: Error {
@available(iOS 16, *) struct StateiAPSResults: AppEntity {
static var defaultQuery = StateBGQuery()

static var typeDisplayRepresentation: TypeDisplayRepresentation = "iAPS State Result"
static var typeDisplayRepresentation: TypeDisplayRepresentation = "Open-iAPS State Result"

var displayRepresentation: DisplayRepresentation {
DisplayRepresentation(title: "\(glucose)")
Expand Down
8 changes: 4 additions & 4 deletions FreeAPSWatch WatchKit Extension/ComplicationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
let descriptors = [
CLKComplicationDescriptor(
identifier: "complication",
displayName: "iAPS",
displayName: "Open-iAPS",
supportedFamilies: [
.graphicCorner,
.graphicCircular,
Expand Down Expand Up @@ -52,14 +52,14 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
return
}
let template = CLKComplicationTemplateGraphicCornerTextImage(
textProvider: CLKTextProvider(format: "%@", "iAPS"),
textProvider: CLKTextProvider(format: "%@", "Open-iAPS"),
imageProvider: CLKFullColorImageProvider(fullColorImage: image)
)
let timelineEntry = CLKComplicationTimelineEntry(date: Date(), complicationTemplate: template)
handler(timelineEntry)
case .modularSmall:
let template = CLKComplicationTemplateModularSmallRingText(
textProvider: CLKTextProvider(format: "%@", "FAX"),
textProvider: CLKTextProvider(format: "%@", "Open-iAPS"),
fillFraction: 1,
ringStyle: .closed
)
Expand All @@ -78,7 +78,7 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
handler(timelineEntry)
case .circularSmall:
let template =
CLKComplicationTemplateCircularSmallSimpleText(textProvider: CLKTextProvider(format: "%@", "FAX"))
CLKComplicationTemplateCircularSmallSimpleText(textProvider: CLKTextProvider(format: "%@", "Open-iAPS"))
let timelineEntry = CLKComplicationTimelineEntry(date: Date(), complicationTemplate: template)
handler(timelineEntry)
default:
Expand Down

0 comments on commit 593ce21

Please sign in to comment.