Explorar el Código

Added missing localizations to Settings view (#521)

Magnus Reintz hace 1 año
padre
commit
cff8647c8a

+ 36 - 1
Trio/Sources/Localizations/Main/Localizable.xcstrings

@@ -27846,6 +27846,17 @@
         }
       }
     },
+    "Algorithm" : {
+      "comment" : "Algorithm menu item in the Settings main view.",
+      "localizations" : {
+        "nb-NO" : {
+          "stringUnit" : {
+            "state" : "translated",
+            "value" : "Algoritme"
+          }
+        }
+      }
+    },
     "Algorithm Settings" : {
       "localizations" : {
         "bg" : {
@@ -72609,6 +72620,7 @@
       }
     },
     "Devices" : {
+      "comment" : "Devices menu item in the Settings main view.",
       "localizations" : {
         "bg" : {
           "stringUnit" : {
@@ -93506,6 +93518,17 @@
         }
       }
     },
+    "Features" : {
+      "comment" : "Features menu item in the Settings main view.",
+      "localizations" : {
+        "nb-NO" : {
+          "stringUnit" : {
+            "state" : "translated",
+            "value" : "Funksjoner"
+          }
+        }
+      }
+    },
     "Fetch" : {
       "localizations" : {
         "bg" : {
@@ -144871,7 +144894,7 @@
       }
     },
     "Notifications" : {
-      "comment" : "Notifications Status text",
+      "comment" : "Notifications Status text\nNotifications menu item in the Settings main view.",
       "localizations" : {
         "bg" : {
           "stringUnit" : {
@@ -171356,6 +171379,7 @@
       }
     },
     "Services" : {
+      "comment" : "Services menu item in the Settings main view.",
       "localizations" : {
         "bg" : {
           "stringUnit" : {
@@ -194576,6 +194600,17 @@
         }
       }
     },
+    "Therapy" : {
+      "comment" : "Therapy menu item in the Settings main view.",
+      "localizations" : {
+        "nb-NO" : {
+          "stringUnit" : {
+            "state" : "translated",
+            "value" : "Behandling"
+          }
+        }
+      }
+    },
     "Therapy Settings" : {
       "localizations" : {
         "bg" : {

+ 6 - 6
Trio/Sources/Modules/Settings/SettingItems.swift

@@ -30,12 +30,12 @@ struct FilteredSettingItem: Identifiable {
 
 enum SettingItems {
     static let trioConfig = [
-        SettingItem(title: "Devices", view: .devices),
-        SettingItem(title: "Therapy", view: .therapySettings),
-        SettingItem(title: "Algorithm", view: .algorithmSettings),
-        SettingItem(title: "Features", view: .featureSettings),
-        SettingItem(title: "Notifications", view: .notificationSettings),
-        SettingItem(title: "Services", view: .serviceSettings)
+        SettingItem(title: String(localized: "Devices", comment: "Devices menu item in the Settings main view."), view: .devices),
+        SettingItem(title: String(localized: "Therapy", comment: "Therapy menu item in the Settings main view."), view: .therapySettings),
+        SettingItem(title: String(localized: "Algorithm", comment: "Algorithm menu item in the Settings main view."), view: .algorithmSettings),
+        SettingItem(title: String(localized: "Features", comment: "Features menu item in the Settings main view."), view: .featureSettings),
+        SettingItem(title: String(localized: "Notifications", comment: "Notifications menu item in the Settings main view."), view: .notificationSettings),
+        SettingItem(title: String(localized: "Services", comment: "Services menu item in the Settings main view."), view: .serviceSettings)
     ]
 
     static let devicesItems = [