You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cell.textLabel?.text =NSLocalizedString("Unknown", comment:"The default description to use when an entry has no dose description")
471
-
}
468
+
letdescription=String(format:NSLocalizedString("Manual Dose: <b>%1$@</b> %2$@", comment:"Description of a bolus dose entry (1: value (? if no value) in bold, 2: unit)"), numberFormatter.string(from: entry.programmedUnits)??"?",DoseEntry.units.shortLocalizedUnitString(avoidLineBreaking:false))
description =String(format:NSLocalizedString("Interrupted %1$@: <b>%2$@</b> of %3$@ %4$@", comment:"Description of an interrupted bolus dose entry (1: title for dose type, 2: value (? if no value) in bold, 3: programmed value (? if no value), 4: unit)"), type.localizedDescription, numberFormatter.string(from: deliveredUnits)??"?", numberFormatter.string(from: programmedUnits)??"?",DoseEntry.units.shortLocalizedUnitString())
621
-
}else{
622
-
description =String(format:NSLocalizedString("%1$@: <b>%2$@</b> %3$@", comment:"Description of a bolus dose entry (1: title for dose type, 2: value (? if no value) in bold, 3: unit)"), type.localizedDescription, numberFormatter.string(from: programmedUnits)??"?",DoseEntry.units.shortLocalizedUnitString(avoidLineBreaking:false))
letdescription=String(format:NSLocalizedString("%1$@: <b>%2$@</b> %3$@", comment:"Description of a basal temp basal dose entry (1: title for dose type, 2: value (? if no value) in bold, 3: unit)"), type.localizedDescription, numberFormatter.string(from: unitsPerHour)??"?",DoseEntry.unitsPerHour.shortLocalizedUnitString(avoidLineBreaking:false))
leteventTitle= title ??NSLocalizedString("Unknown", comment:"Event title displayed when StoredPumpEvent.title is not set")
636
+
637
+
iflet dose = dose {
638
+
switch dose.type {
639
+
case.bolus:
640
+
letdescription:String
641
+
iflet deliveredUnits = dose.deliveredUnits,
642
+
deliveredUnits != dose.programmedUnits
643
+
{
644
+
description =String(format:NSLocalizedString("Interrupted %1$@: <b>%2$@</b> of %3$@ %4$@", comment:"Description of an interrupted bolus dose entry (1: title for dose type, 2: value (? if no value) in bold, 3: programmed value (? if no value), 4: unit)"), eventTitle, numberFormatter.string(from: deliveredUnits)??"?", numberFormatter.string(from: dose.programmedUnits)??"?",DoseEntry.units.shortLocalizedUnitString())
645
+
}else{
646
+
description =String(format:NSLocalizedString("%1$@: <b>%2$@</b> %3$@", comment:"Description of a bolus dose entry (1: title for dose type, 2: value (? if no value) in bold, 3: unit)"), eventTitle, numberFormatter.string(from: dose.programmedUnits)??"?",DoseEntry.units.shortLocalizedUnitString(avoidLineBreaking:false))
letdescription=String(format:NSLocalizedString("%1$@: <b>%2$@</b> %3$@", comment:"Description of a basal temp basal dose entry (1: title for dose type, 2: value (? if no value) in bold, 3: unit)"), eventTitle, numberFormatter.string(from: dose.unitsPerHour)??"?",DoseEntry.unitsPerHour.shortLocalizedUnitString(avoidLineBreaking:false))
0 commit comments