Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Loop Widget Extension/Bootstrap/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@
}
},
"%@U" : {

"comment" : "A label displaying the basal insulin rate in micro-units (U).",
"isCommentAutoGenerated" : true
},
"%1$@ v%2$@" : {
"comment" : "The format string for the app name and version number. (1: bundle name)(2: bundle version)",
Expand Down Expand Up @@ -1553,5 +1554,5 @@
}
}
},
"version" : "1.0"
"version" : "1.1"
}
4 changes: 4 additions & 0 deletions Loop Widget Extension/Live Activity/BasalViewActivity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ struct BasalViewActivity: View {
if let rateString = decimalFormatter.string(from: NSNumber(value: rate)) {
Text("\(rateString)U")
.font(.subheadline)
.minimumScaleFactor(0.5)
.lineLimit(2)
}
else {
Text("-U")
.font(.subheadline)
.minimumScaleFactor(0.5)
.lineLimit(2)
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions LoopCore/LiveActivitySettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public enum BottomRowConfiguration: Codable {
public func name() -> String {
switch self {
case .iob:
return NSLocalizedString("Active Insulin", comment: "")
return NSLocalizedString("IOB", comment: "")
case .cob:
return NSLocalizedString("Active Carbs", comment: "")
return NSLocalizedString("COB", comment: "")
case .basal:
return NSLocalizedString("Basal", comment: "")
case .currentBg:
Expand All @@ -35,7 +35,7 @@ public enum BottomRowConfiguration: Codable {
case .deltaBg:
return NSLocalizedString("Delta", comment: "")
case .updatedAt:
return NSLocalizedString("Updated", comment: "")
return NSLocalizedString("at", comment: "")
}
}

Expand All @@ -46,13 +46,13 @@ public enum BottomRowConfiguration: Codable {
case .cob:
return NSLocalizedString("Active Carbohydrates", comment: "")
case .basal:
return NSLocalizedString("Basal", comment: "")
return NSLocalizedString("Relative Basal Rate", comment: "")
case .currentBg:
return NSLocalizedString("Current Glucose", comment: "")
case .eventualBg:
return NSLocalizedString("Eventually", comment: "")
return NSLocalizedString("Eventual Glucose", comment: "")
case .deltaBg:
return NSLocalizedString("Delta", comment: "")
return NSLocalizedString("Delta Glucose", comment: "")
case .updatedAt:
return NSLocalizedString("Updated at", comment: "")
}
Expand Down
36 changes: 24 additions & 12 deletions LoopCore/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@
"comment" : "Description of a bottom row configuration option for active carbohydrates.",
"isCommentAutoGenerated" : true
},
"Active Carbs" : {
"comment" : "Name of the \"Active Carbs\" option in the Live Activity settings.",
"isCommentAutoGenerated" : true
},
"Active Insulin" : {
"comment" : "Name of the active insulin value in the bottom row.",
"isCommentAutoGenerated" : true
},
"at" : {
"comment" : "Label for the timestamp in the Live Activity.",
"isCommentAutoGenerated" : true
},
"Automatic Bolus" : {
"comment" : "Title string for automatic bolus dosing strategy",
"localizations" : {
Expand Down Expand Up @@ -231,8 +231,12 @@
"comment" : "Name of the basal insulin rate.",
"isCommentAutoGenerated" : true
},
"COB" : {
"comment" : "Name of the COB value in the Live Activity.",
"isCommentAutoGenerated" : true
},
"Current BG" : {
"comment" : "Name of a bottom row item that shows the current blood glucose level.",
"comment" : "Name of a bottom row item that shows the current glucose value.",
"isCommentAutoGenerated" : true
},
"Current Glucose" : {
Expand All @@ -243,22 +247,34 @@
"comment" : "The name of the delta BG value.",
"isCommentAutoGenerated" : true
},
"Delta Glucose" : {
"comment" : "Description of a bottom row configuration option that shows the delta glucose value.",
"isCommentAutoGenerated" : true
},
"Eventual BG" : {
"comment" : "Description of a bottom row configuration option for displaying the eventual glucose value.",
"comment" : "Name of a bottom row item that shows the eventual glucose value.",
"isCommentAutoGenerated" : true
},
"Eventually" : {
"comment" : "Description of a glucose value that is expected to change in the future.",
"Eventual Glucose" : {
"comment" : "Description of a bottom row configuration option that shows the eventual glucose value.",
"isCommentAutoGenerated" : true
},
"In which mode do you want to render the Live Activity" : {
"comment" : "Description of a setting that allows the user to choose between a large or small display of the Live Activity.",
"isCommentAutoGenerated" : true
},
"IOB" : {
"comment" : "Name of a bottom row configuration option for IOB (Insulin On Board).",
"isCommentAutoGenerated" : true
},
"Large" : {
"comment" : "Name of the \"Large\" Live Activity mode.",
"isCommentAutoGenerated" : true
},
"Relative Basal Rate" : {
"comment" : "Description of a bottom row configuration option for the basal rate.",
"isCommentAutoGenerated" : true
},
"Small" : {
"comment" : "Name of the \"Small\" Live Activity mode.",
"isCommentAutoGenerated" : true
Expand Down Expand Up @@ -352,10 +368,6 @@
}
}
},
"Updated" : {
"comment" : "Name of the \"Updated\" option in the Live Activity settings.",
"isCommentAutoGenerated" : true
},
"Updated at" : {
"comment" : "Label for the date and time when the last update was made.",
"isCommentAutoGenerated" : true
Expand Down