Просмотр исходного кода

Fix add carbs intent message for iOS shortcut #543

Deniz Cengiz 1 год назад
Родитель
Сommit
791720a8ee

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

@@ -36901,6 +36901,7 @@
       }
     },
     "Are you sure to add %@ g of carbs ?" : {
+      "extractionState" : "stale",
       "localizations" : {
         "bg" : {
           "stringUnit" : {
@@ -77486,6 +77487,9 @@
         }
       }
     },
+    "Do you want to add %@ grams of carbs?" : {
+
+    },
     "Don’t Allow" : {
       "localizations" : {
         "bg" : {
@@ -106820,6 +106824,7 @@
       }
     },
     "How many carbs ?" : {
+      "extractionState" : "stale",
       "localizations" : {
         "bg" : {
           "stringUnit" : {
@@ -106919,6 +106924,9 @@
         }
       }
     },
+    "How many carbs do you want to add?" : {
+
+    },
     "How Trio Manages Contact Images" : {
       "localizations" : {
         "bg" : {

+ 2 - 2
Trio/Sources/Shortcuts/Carbs/AddCarbPresetIntent.swift

@@ -76,13 +76,13 @@ import Swinject
             if let cq = carbQuantity {
                 quantityCarbs = cq
             } else {
-                quantityCarbs = try await $carbQuantity.requestValue("How many carbs ?")
+                quantityCarbs = try await $carbQuantity.requestValue("How many carbs do you want to add?")
             }
 
             let quantityCarbsName = quantityCarbs.toString()
             if confirmBeforeApplying {
                 try await requestConfirmation(
-                    result: .result(dialog: "Are you sure to add \(quantityCarbsName) g of carbs ?")
+                    result: .result(dialog: "Do you want to add \(quantityCarbsName) grams of carbs?")
                 )
             }