Sfoglia il codice sorgente

Localization

(cherry picked from commit 65df95b3c0beb4218976a363c6c0565c1d9df0a9)
Jon Mårtensson 3 anni fa
parent
commit
e239572429

+ 15 - 0
FreeAPS/Sources/Localizations/Main/en.lproj/Localizable.strings

@@ -112,6 +112,21 @@
 /*  */
 /*  */
 "Enact Temp Target" = "Enact Temp Target";
 "Enact Temp Target" = "Enact Temp Target";
 
 
+/* */
+"Target" = "Target";
+
+/* */
+"Basal Insulin and Sensitivity ratio" = "Basal Insulin and Sensitivity ratio";
+
+/* */
+"A lower 'Half Basal Target' setting will reduce the basal and raise the ISF earlier, at a lower target glucose." = "A lower 'Half Basal Target' setting will reduce the basal and raise the ISF earlier, at a lower target glucose.";
+
+/* */
+" Your setting: " = " Your setting: ";
+
+/* */
+"mg/dl. Autosens.max limits the max endpoint" = "mg/dl. Autosens.max limits the max endpoint";
+
 /*  */
 /*  */
 "Enter preset name" = "Enter preset name";
 "Enter preset name" = "Enter preset name";
 
 

+ 18 - 0
FreeAPS/Sources/Localizations/Main/sv.lproj/Localizable.strings

@@ -112,6 +112,24 @@
 /*  */
 /*  */
 "Enact Temp Target" = "Tillfälliga målvärden";
 "Enact Temp Target" = "Tillfälliga målvärden";
 
 
+/* */
+"Target" = "Målvärde";
+
+/* */
+"Basal Insulin and Sensitivity ratio" = "Basalinsulin och insulinkänslighetskvot";
+
+/* */
+"A lower 'Half Basal Target' setting will reduce the basal and raise the ISF earlier, at a lower target glucose." = "En lägre inställning för 'Halva basaldosen vid Motionsläge' kommer leda till en sänkning av basalinsulin och ett ökad insulinkänslighet tidigare, vid ett lägre målvärde.";
+
+/* */
+" Your setting: " = " Nuvarande inställning: ";
+
+/* */
+"mg/dl. Autosens.max limits the max endpoint" = "mg/dl. Autosens.max begränsar maxvärdet";
+
+/* */
+"Target" = "Målvärde";
+
 /*  */
 /*  */
 "Enter preset name" = "Ange namn för förval";
 "Enter preset name" = "Ange namn för förval";
 
 

+ 8 - 3
FreeAPS/Sources/Modules/AddTempTarget/View/AddTempTargetRootView.swift

@@ -30,8 +30,13 @@ extension AddTempTarget {
                 Section(
                 Section(
                     header: Text("Basal Insulin and Sensitivity ratio"),
                     header: Text("Basal Insulin and Sensitivity ratio"),
                     footer: Text(
                     footer: Text(
-                        "A lower 'Half Basal Target' setting will reduce the basal and raise the ISF earlier, at a lower target glucose." +
-                            " Your setting: \(state.halfBasal) mg/dl. Autosens.max limits the max endpoint (\(state.maxValue * 100) %)"
+                        NSLocalizedString(
+                            "A lower 'Half Basal Target' setting will reduce the basal and raise the ISF earlier, at a lower target glucose.",
+                            comment: ""
+                        ) +
+                            NSLocalizedString(" Your setting: ", comment: "") + "\(state.halfBasal) " +
+                            NSLocalizedString("mg/dl. Autosens.max limits the max endpoint", comment: "") +
+                            " (\(state.maxValue * 100) %)"
                     )
                     )
                 ) {
                 ) {
                     VStack {
                     VStack {
@@ -49,7 +54,7 @@ extension AddTempTarget {
                             .font(.largeTitle)
                             .font(.largeTitle)
                         Divider()
                         Divider()
                         Text(
                         Text(
-                            "Target" +
+                            NSLocalizedString("Target", comment: "") +
                                 (
                                 (
                                     state
                                     state
                                         .units == .mmolL ? ": \(computeTarget().asMmolL.formatted(.number)) mmol/L" :
                                         .units == .mmolL ? ": \(computeTarget().asMmolL.formatted(.number)) mmol/L" :