Forráskód Böngészése

More error strings.

(cherry picked from commit ef1312593b78ff4ae7f96a33fe9f9ec4a83c590d)
Jon Mårtensson 2 éve
szülő
commit
e6ad164f42

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 1
FreeAPS/Resources/javascript/bundle/determine-basal.js


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

@@ -1307,6 +1307,18 @@ Enact a temp Basal or a temp target */
 /* Hide pop-up */
 "Hide" = "Hide";
 
+/* Error string 1. Make translation very short! */
+"Predicted Glucose, %@ %@, is below threshold (%@!)" = "Predicted Glucose, %@ %@, is below threshold (%@!)";
+
+/* Error string 2. Make translation very short! */
+"Eventual Glucose > Target Glucose, but glucose is falling faster than expected. Expected: %@. Falling: %@" = "Eventual Glucose > Target Glucose, but glucose is falling faster than expected. Expected: %@. Falling: %@";
+
+/* Error string 3. Make translation very short! */
+"Minimum predicted Glucose is %@ %@" = "Minimum predicted Glucose is %@ %@";
+
+/* Error string 4. Make translation very short! */
+"Predicted Glucose %@ %@, is below Threshold of %@" = "Predicted Glucose %@ %@, is below Threshold of %@";
+
 /* -------------------------------------------------------------------------------------------
   DASH strings
 */

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

@@ -1307,6 +1307,18 @@ Enact a temp Basal or a temp target */
 /* Hide pop-up */
 "Hide" = "Göm";
 
+/* Error string 1. Make translation very short! */
+"Predicted Glucose, %@ %@, is below threshold (%@!)" = "Blodsockerprognos, %@ %@, är lägre än (%@!)";
+
+/* Error string 2. Make translation very short! */
+"Eventual Glucose > Target Glucose, but glucose is falling faster than expected. Expected: %@. Falling: %@" = "Blodsockerprognos > målvärde, med blodsockret sjunker snabbare än väntat. Förväntat: %@. Sjunker: %@";
+
+/* Error string 3. Make translation very short! */
+"Minimum predicted Glucose is %@ %@" = "Lägsta blodsockerprognos är %@ %@!";
+
+/* Error string 4. Make translation very short! */
+"Predicted Glucose %@ %@, is below Threshold of %@" = "Blodsockerprognos %@ %@, är under tröskelvärde %@";
+
 /* -------------------------------------------------------------------------------------------
   DASH strings
 */

+ 2 - 2
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -105,7 +105,7 @@ extension Bolus {
             .alert(isPresented: $displayError) {
                 Alert(
                     title: Text("Warning!"),
-                    message: Text("\n" + state.errorString + NSLocalizedString(
+                    message: Text("\n" + NSLocalizedString(state.errorString, comment: "") + NSLocalizedString(
                         "\n\nTap 'Add' to continue with selected amount.",
                         comment: "Alert text to confirm bolus amount to add"
                     )),
@@ -202,7 +202,7 @@ extension Bolus {
                     Divider()
                     if state.error, state.insulinRecommended > 0 {
                         Text("Warning!").font(.callout).foregroundColor(.orange).bold()
-                        Text(state.errorString).font(.caption)
+                        Text(NSLocalizedString(state.errorString, comment: "")).font(.caption)
                         Divider()
                     }
                 }.padding(.horizontal, 10)