Added missing localization for Treatments unit and label.
This commit is contained in:
parent
81565c8e4e
commit
58657b7a94
|
@ -24,13 +24,13 @@ import CoreData
|
||||||
public func asString() -> String {
|
public func asString() -> String {
|
||||||
switch self {
|
switch self {
|
||||||
case .Insulin:
|
case .Insulin:
|
||||||
return "Insulin"
|
return Texts_TreatmentsView.insulin
|
||||||
case .Carbs:
|
case .Carbs:
|
||||||
return "Carbs"
|
return Texts_TreatmentsView.carbs
|
||||||
case .Exercise:
|
case .Exercise:
|
||||||
return "Exercise"
|
return Texts_TreatmentsView.exercise
|
||||||
default:
|
default:
|
||||||
return "Unknown"
|
return Texts_TreatmentsView.questionMark
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,13 +38,13 @@ import CoreData
|
||||||
public func unit() -> String {
|
public func unit() -> String {
|
||||||
switch self {
|
switch self {
|
||||||
case .Insulin:
|
case .Insulin:
|
||||||
return "u"
|
return Texts_TreatmentsView.insulinUnit
|
||||||
case .Carbs:
|
case .Carbs:
|
||||||
return "g"
|
return Texts_TreatmentsView.carbsUnit
|
||||||
case .Exercise:
|
case .Exercise:
|
||||||
return "min"
|
return Texts_TreatmentsView.exerciseUnit
|
||||||
default:
|
default:
|
||||||
return ""
|
return Texts_TreatmentsView.questionMark
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -4,5 +4,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -8,5 +8,12 @@
|
||||||
"treatments_carbs_with_unit" = "Carbs (g):";
|
"treatments_carbs_with_unit" = "Carbs (g):";
|
||||||
"treatments_insulin_with_unit" = "Insulin (U):";
|
"treatments_insulin_with_unit" = "Insulin (U):";
|
||||||
"treatments_exercise_with_unit" = "Exercise (min):";
|
"treatments_exercise_with_unit" = "Exercise (min):";
|
||||||
|
"treatments_carbs_unit" = "g";
|
||||||
|
"treatments_insulin_unit" = "U";
|
||||||
|
"treatments_exercise_unit" = "min";
|
||||||
|
"treatments_carbs" = "Carbs";
|
||||||
|
"treatments_insulin" = "Insulin";
|
||||||
|
"treatments_exercise" = "Exercise";
|
||||||
|
"treatments_question_mark" = "?";
|
||||||
"treatments_success" = "Success";
|
"treatments_success" = "Success";
|
||||||
"treatments_upload_complete" = "Upload complete.";
|
"treatments_upload_complete" = "Upload complete.";
|
|
@ -28,6 +28,34 @@ enum Texts_TreatmentsView {
|
||||||
return NSLocalizedString("treatments_exercise_with_unit", tableName: filename, bundle: Bundle.main, value: "Exercise (min):", comment: "Exercise with unit.")
|
return NSLocalizedString("treatments_exercise_with_unit", tableName: filename, bundle: Bundle.main, value: "Exercise (min):", comment: "Exercise with unit.")
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
static let carbsUnit:String = {
|
||||||
|
return NSLocalizedString("treatments_carbs_unit", tableName: filename, bundle: Bundle.main, value: "g", comment: "Carbs unit.")
|
||||||
|
}()
|
||||||
|
|
||||||
|
static let insulinUnit:String = {
|
||||||
|
return NSLocalizedString("treatments_insulin_unit", tableName: filename, bundle: Bundle.main, value: "U:", comment: "Insulin unit.")
|
||||||
|
}()
|
||||||
|
|
||||||
|
static let exerciseUnit:String = {
|
||||||
|
return NSLocalizedString("treatments_exercise_unit", tableName: filename, bundle: Bundle.main, value: "min", comment: "Exercise unit.")
|
||||||
|
}()
|
||||||
|
|
||||||
|
static let carbs:String = {
|
||||||
|
return NSLocalizedString("treatments_carbs", tableName: filename, bundle: Bundle.main, value: "Carbs", comment: "Carbs.")
|
||||||
|
}()
|
||||||
|
|
||||||
|
static let insulin:String = {
|
||||||
|
return NSLocalizedString("treatments_insulin", tableName: filename, bundle: Bundle.main, value: "Insulin", comment: "Insulin.")
|
||||||
|
}()
|
||||||
|
|
||||||
|
static let exercise:String = {
|
||||||
|
return NSLocalizedString("treatments_exercise", tableName: filename, bundle: Bundle.main, value: "Exercise", comment: "Exercise.")
|
||||||
|
}()
|
||||||
|
|
||||||
|
static let questionMark:String = {
|
||||||
|
return NSLocalizedString("treatments_question_mark", tableName: filename, bundle: Bundle.main, value: "?", comment: "Literally a question mark, used as unknown abbreviation.")
|
||||||
|
}()
|
||||||
|
|
||||||
static let success:String = {
|
static let success:String = {
|
||||||
return NSLocalizedString("treatments_success", tableName: filename, bundle: Bundle.main, value: "Success", comment: "Success.")
|
return NSLocalizedString("treatments_success", tableName: filename, bundle: Bundle.main, value: "Success", comment: "Success.")
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue