From b8f874439dfd03bbd4c37569697b97db12d069f9 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sat, 26 Apr 2025 16:05:09 -0700 Subject: [PATCH] Get rid of a few more translation keys --- Localizable.xcstrings | 4 ++-- Meshtastic/Views/Settings/Config/BluetoothConfig.swift | 4 ++-- Meshtastic/Views/Settings/Config/DeviceConfig.swift | 2 +- .../Settings/Config/Module/AmbientLightingConfig.swift | 2 +- .../Views/Settings/Config/Module/CannedMessagesConfig.swift | 4 ++-- .../Settings/Config/Module/DetectionSensorConfig.swift | 4 ++-- .../Settings/Config/Module/ExternalNotificationConfig.swift | 4 ++-- Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift | 6 +++--- .../Views/Settings/Config/Module/PaxCounterConfig.swift | 4 ++-- .../Views/Settings/Config/Module/RangeTestConfig.swift | 4 ++-- Meshtastic/Views/Settings/Config/Module/RtttlConfig.swift | 2 +- Meshtastic/Views/Settings/Config/Module/SerialConfig.swift | 4 ++-- .../Views/Settings/Config/Module/StoreForwardConfig.swift | 4 ++-- .../Views/Settings/Config/Module/TelemetryConfig.swift | 4 ++-- Meshtastic/Views/Settings/Config/NetworkConfig.swift | 6 +++--- Meshtastic/Views/Settings/Routes.swift | 2 +- 16 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Localizable.xcstrings b/Localizable.xcstrings index dd928ae9..42700843 100644 --- a/Localizable.xcstrings +++ b/Localizable.xcstrings @@ -9799,7 +9799,7 @@ } } }, - "enabled" : { + "Enabled" : { "localizations" : { "de" : { "stringUnit" : { @@ -21656,7 +21656,7 @@ } } }, - "options" : { + "Options" : { "localizations" : { "de" : { "stringUnit" : { diff --git a/Meshtastic/Views/Settings/Config/BluetoothConfig.swift b/Meshtastic/Views/Settings/Config/BluetoothConfig.swift index 63fdf327..82b4f628 100644 --- a/Meshtastic/Views/Settings/Config/BluetoothConfig.swift +++ b/Meshtastic/Views/Settings/Config/BluetoothConfig.swift @@ -29,9 +29,9 @@ struct BluetoothConfig: View { Form { ConfigHeader(title: "Bluetooth", config: \.bluetoothConfig, node: node, onAppear: setBluetoothValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "antenna.radiowaves.left.and.right") + Label("Enabled", systemImage: "antenna.radiowaves.left.and.right") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) Picker("Pairing Mode", selection: $mode ) { diff --git a/Meshtastic/Views/Settings/Config/DeviceConfig.swift b/Meshtastic/Views/Settings/Config/DeviceConfig.swift index abce6e9a..3fdc73b9 100644 --- a/Meshtastic/Views/Settings/Config/DeviceConfig.swift +++ b/Meshtastic/Views/Settings/Config/DeviceConfig.swift @@ -40,7 +40,7 @@ struct DeviceConfig: View { Form { ConfigHeader(title: "Device", config: \.deviceConfig, node: node, onAppear: setDeviceValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { VStack(alignment: .leading) { Picker("Device Role", selection: $deviceRole ) { ForEach(DeviceRoles.allCases) { dr in diff --git a/Meshtastic/Views/Settings/Config/Module/AmbientLightingConfig.swift b/Meshtastic/Views/Settings/Config/Module/AmbientLightingConfig.swift index 8e3a0f02..24c0ada3 100644 --- a/Meshtastic/Views/Settings/Config/Module/AmbientLightingConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/AmbientLightingConfig.swift @@ -30,7 +30,7 @@ struct AmbientLightingConfig: View { Form { ConfigHeader(title: "Ambient Lighting", config: \.ambientLightingConfig, node: node, onAppear: setAmbientLightingConfigValue) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $ledState) { Label("LED State", systemImage: ledState ? "lightbulb.led.fill" : "lightbulb.led") diff --git a/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift b/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift index 99a28a32..e95d524f 100644 --- a/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/CannedMessagesConfig.swift @@ -42,11 +42,11 @@ struct CannedMessagesConfig: View { Form { ConfigHeader(title: "Canned messages", config: \.cannedMessageConfig, node: node, onAppear: setCannedMessagesValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "list.bullet.rectangle.fill") + Label("Enabled", systemImage: "list.bullet.rectangle.fill") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) diff --git a/Meshtastic/Views/Settings/Config/Module/DetectionSensorConfig.swift b/Meshtastic/Views/Settings/Config/Module/DetectionSensorConfig.swift index 1c53b495..21e24177 100644 --- a/Meshtastic/Views/Settings/Config/Module/DetectionSensorConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/DetectionSensorConfig.swift @@ -47,10 +47,10 @@ struct DetectionSensorConfig: View { Form { ConfigHeader(title: "Detection Sensor", config: \.detectionSensorConfig, node: node, onAppear: setDetectionSensorValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "dot.radiowaves.right") + Label("Enabled", systemImage: "dot.radiowaves.right") Text("Enables the detection sensor module, it needs to be enabled on both the node with the sensor, and any nodes that you want to receive detection sensor text messages or view the detection sensor log and chart.") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) diff --git a/Meshtastic/Views/Settings/Config/Module/ExternalNotificationConfig.swift b/Meshtastic/Views/Settings/Config/Module/ExternalNotificationConfig.swift index 9602c44b..01d2f247 100644 --- a/Meshtastic/Views/Settings/Config/Module/ExternalNotificationConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/ExternalNotificationConfig.swift @@ -39,10 +39,10 @@ struct ExternalNotificationConfig: View { Form { ConfigHeader(title: "External notification", config: \.externalNotificationConfig, node: node, onAppear: setExternalNotificationValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "megaphone") + Label("Enabled", systemImage: "megaphone") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) diff --git a/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift b/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift index 3b184548..21297a16 100644 --- a/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift @@ -51,10 +51,10 @@ struct MQTTConfig: View { ConfigHeader(title: "MQTT", config: \.mqttConfig, node: node, onAppear: setMqttValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "dot.radiowaves.up.forward") + Label("Enabled", systemImage: "dot.radiowaves.up.forward") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) @@ -94,7 +94,7 @@ struct MQTTConfig: View { Section(header: Text("Map Report")) { Toggle(isOn: $mapReportingEnabled) { - Label("enabled", systemImage: "map") + Label("Enabled", systemImage: "map") Text("Your node will periodically send an unencrypted map report packet to the configured MQTT server, this includes id, short and long name, approximate location, hardware model, role, firmware version, LoRa region, modem preset and primary channel name.") .foregroundColor(.gray) .font(.caption) diff --git a/Meshtastic/Views/Settings/Config/Module/PaxCounterConfig.swift b/Meshtastic/Views/Settings/Config/Module/PaxCounterConfig.swift index 24af3504..5f78379e 100644 --- a/Meshtastic/Views/Settings/Config/Module/PaxCounterConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/PaxCounterConfig.swift @@ -26,7 +26,7 @@ struct PaxCounterConfig: View { Section { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "figure.walk.motion") + Label("Enabled", systemImage: "figure.walk.motion") Text("config.module.paxcounter.enabled.description") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) @@ -46,7 +46,7 @@ struct PaxCounterConfig: View { .font(.callout) } } header: { - Text("options") + Text("Options") } } .disabled(self.bleManager.connectedPeripheral == nil || node?.powerConfig == nil) diff --git a/Meshtastic/Views/Settings/Config/Module/RangeTestConfig.swift b/Meshtastic/Views/Settings/Config/Module/RangeTestConfig.swift index 979eb736..7ac35423 100644 --- a/Meshtastic/Views/Settings/Config/Module/RangeTestConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/RangeTestConfig.swift @@ -27,9 +27,9 @@ struct RangeTestConfig: View { Form { ConfigHeader(title: "Range", config: \.rangeTestConfig, node: node, onAppear: setRangeTestValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "figure.walk") + Label("Enabled", systemImage: "figure.walk") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) .listRowSeparator(.visible) diff --git a/Meshtastic/Views/Settings/Config/Module/RtttlConfig.swift b/Meshtastic/Views/Settings/Config/Module/RtttlConfig.swift index b81e2348..669add34 100644 --- a/Meshtastic/Views/Settings/Config/Module/RtttlConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/RtttlConfig.swift @@ -24,7 +24,7 @@ struct RtttlConfig: View { Form { ConfigHeader(title: "ringtone", config: \.rtttlConfig, node: node, onAppear: setRtttLConfigValue) - Section(header: Text("options")) { + Section(header: Text("Options")) { HStack { Label("ringtone", systemImage: "music.quarternote.3") TextField("config.ringtone.label", text: $ringtone, axis: .vertical) diff --git a/Meshtastic/Views/Settings/Config/Module/SerialConfig.swift b/Meshtastic/Views/Settings/Config/Module/SerialConfig.swift index fd2c0c99..d8ca379d 100644 --- a/Meshtastic/Views/Settings/Config/Module/SerialConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/SerialConfig.swift @@ -33,10 +33,10 @@ struct SerialConfig: View { Form { ConfigHeader(title: "Serial", config: \.serialConfig, node: node, onAppear: setSerialValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "terminal") + Label("Enabled", systemImage: "terminal") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) diff --git a/Meshtastic/Views/Settings/Config/Module/StoreForwardConfig.swift b/Meshtastic/Views/Settings/Config/Module/StoreForwardConfig.swift index fe6abcd1..3f2e66f6 100644 --- a/Meshtastic/Views/Settings/Config/Module/StoreForwardConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/StoreForwardConfig.swift @@ -34,9 +34,9 @@ struct StoreForwardConfig: View { Form { ConfigHeader(title: "Store & Forward", config: \.storeForwardConfig, node: node, onAppear: setStoreAndForwardValues) - Section(header: Text("options")) { + Section(header: Text("Options")) { Toggle(isOn: $enabled) { - Label("enabled", systemImage: "envelope.arrow.triangle.branch") + Label("Enabled", systemImage: "envelope.arrow.triangle.branch") Text("Enables the store and forward module.") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) diff --git a/Meshtastic/Views/Settings/Config/Module/TelemetryConfig.swift b/Meshtastic/Views/Settings/Config/Module/TelemetryConfig.swift index ad173dae..6d78316c 100644 --- a/Meshtastic/Views/Settings/Config/Module/TelemetryConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/TelemetryConfig.swift @@ -64,7 +64,7 @@ struct TelemetryConfig: View { .foregroundColor(.gray) .font(.callout) Toggle(isOn: $environmentMeasurementEnabled) { - Label("enabled", systemImage: "chart.xyaxis.line") + Label("Enabled", systemImage: "chart.xyaxis.line") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) Toggle(isOn: $environmentScreenEnabled) { @@ -78,7 +78,7 @@ struct TelemetryConfig: View { } Section(header: Text("Power Options")) { Toggle(isOn: $powerMeasurementEnabled) { - Label("enabled", systemImage: "bolt") + Label("Enabled", systemImage: "bolt") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) .listRowSeparator(.visible) diff --git a/Meshtastic/Views/Settings/Config/NetworkConfig.swift b/Meshtastic/Views/Settings/Config/NetworkConfig.swift index c63e95be..b8e51fe3 100644 --- a/Meshtastic/Views/Settings/Config/NetworkConfig.swift +++ b/Meshtastic/Views/Settings/Config/NetworkConfig.swift @@ -36,7 +36,7 @@ struct NetworkConfig: View { Section(header: Text("WiFi Options")) { Toggle(isOn: $wifiEnabled) { - Label("enabled", systemImage: "wifi") + Label("Enabled", systemImage: "wifi") Text("Enabling WiFi will disable the bluetooth connection to the app.") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) @@ -82,7 +82,7 @@ struct NetworkConfig: View { if node.metadata?.hasEthernet ?? false { Section(header: Text("Ethernet Options")) { Toggle(isOn: $ethEnabled) { - Label("enabled", systemImage: "network") + Label("Enabled", systemImage: "network") Text("Enabling Ethernet will disable the bluetooth connection to the app.") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) @@ -92,7 +92,7 @@ struct NetworkConfig: View { if node.metadata?.hasEthernet ?? false || node.metadata?.hasWifi ?? false { Section(header: Text("UDP Broadcast")) { Toggle(isOn: $udpEnabled) { - Label("enabled", systemImage: "point.3.connected.trianglepath.dotted") + Label("Enabled", systemImage: "point.3.connected.trianglepath.dotted") Text("Enable broadcasting packets via UDP over the local network.") } } diff --git a/Meshtastic/Views/Settings/Routes.swift b/Meshtastic/Views/Settings/Routes.swift index 52b00fa0..7e6407bc 100644 --- a/Meshtastic/Views/Settings/Routes.swift +++ b/Meshtastic/Views/Settings/Routes.swift @@ -184,7 +184,7 @@ struct Routes: View { } Toggle(isOn: $enabled) { - Label("enabled", systemImage: "point.topleft.filled.down.to.point.bottomright.curvepath") + Label("Enabled", systemImage: "point.topleft.filled.down.to.point.bottomright.curvepath") Text("Show on the mesh map.") } .toggleStyle(SwitchToggleStyle(tint: .accentColor))