Browse Source

Distinguish between external and non-external insulin in confirmation message

Marvin Polscheit 10 months ago
parent
commit
9398132a5c

+ 5 - 0
Trio/Sources/Localizations/Main/Localizable.xcstrings

@@ -20558,6 +20558,7 @@
       }
     },
     "A external bolus of %@ U of insulin was recorded." : {
+      "extractionState" : "stale",
       "localizations" : {
         "fr" : {
           "stringUnit" : {
@@ -37419,6 +37420,9 @@
         }
       }
     },
+    "An external bolus of %@ U of insulin was recorded." : {
+
+    },
     "An unknown authentication error occurred. Please try again." : {
       "localizations" : {
         "bg" : {
@@ -39655,6 +39659,7 @@
       }
     },
     "Are you sure to bolus %@ U of insulin?" : {
+      "extractionState" : "stale",
       "localizations" : {
         "bg" : {
           "stringUnit" : {

+ 2 - 1
Trio/Sources/Shortcuts/Bolus/BolusIntent.swift

@@ -71,7 +71,8 @@ import Swinject
                         dialog: IntentDialog(
                             stringLiteral: String(
                                 localized:
-                                "Are you sure to bolus \(bolusFormatted) U of insulin?"
+                                externalInsulin ? "Are you sure to log \(bolusFormatted) U of external insulin?" :
+                                    "Are you sure to bolus \(bolusFormatted) U of insulin?"
                             )
                         )
                     )