From b8dbfc9260c2be260f6c458e3a255945dfe5027e Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Wed, 30 Apr 2025 08:19:30 -0700 Subject: [PATCH] Update translation keys --- Localizable.xcstrings | 3 --- Meshtastic/Export/WriteCsvFile.swift | 2 +- Meshtastic/Views/Nodes/Helpers/NodeDetail.swift | 2 +- Meshtastic/Views/Nodes/PaxCounterLog.swift | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Localizable.xcstrings b/Localizable.xcstrings index 616fb034..e21daf64 100644 --- a/Localizable.xcstrings +++ b/Localizable.xcstrings @@ -37135,9 +37135,6 @@ } } } - }, - "uptime" : { - }, "Uptime" : { "localizations" : { diff --git a/Meshtastic/Export/WriteCsvFile.swift b/Meshtastic/Export/WriteCsvFile.swift index a1380c77..af3472b2 100644 --- a/Meshtastic/Export/WriteCsvFile.swift +++ b/Meshtastic/Export/WriteCsvFile.swift @@ -14,7 +14,7 @@ func telemetryToCsvFile(telemetry: [TelemetryEntity], metricsType: Int) -> Strin let dateFormatString = (localeDateFormat ?? "MM/dd/YY j:mma").replacingOccurrences(of: ",", with: "") if metricsType == 0 { // Create Device Metrics Header - csvString = "\("battery.level".localized), \("Voltage".localized), \("Channel Utilization".localized), \("airtime".localized), \("uptime".localized), \("Timestamp".localized)" + csvString = "\("battery.level".localized), \("Voltage".localized), \("Channel Utilization".localized), \("airtime".localized), \("Uptime".localized), \("Timestamp".localized)" for dm in telemetry where dm.metricsType == 0 { csvString += "\n" csvString += dm.batteryLevel?.formatted(.number.grouping(.never)) ?? "" diff --git a/Meshtastic/Views/Nodes/Helpers/NodeDetail.swift b/Meshtastic/Views/Nodes/Helpers/NodeDetail.swift index 01f3a406..bd913d10 100644 --- a/Meshtastic/Views/Nodes/Helpers/NodeDetail.swift +++ b/Meshtastic/Views/Nodes/Helpers/NodeDetail.swift @@ -147,7 +147,7 @@ struct NodeDetail: View { if let dm = node.telemetries?.filtered(using: NSPredicate(format: "metricsType == 0")).lastObject as? TelemetryEntity, let uptimeSeconds = dm.uptimeSeconds { HStack { Label { - Text("\("uptime".localized)") + Text("\("Uptime".localized)") } icon: { Image(systemName: "checkmark.circle.fill") .foregroundColor(.green) diff --git a/Meshtastic/Views/Nodes/PaxCounterLog.swift b/Meshtastic/Views/Nodes/PaxCounterLog.swift index 37ca7c30..bcc0dd60 100644 --- a/Meshtastic/Views/Nodes/PaxCounterLog.swift +++ b/Meshtastic/Views/Nodes/PaxCounterLog.swift @@ -98,7 +98,7 @@ struct PaxCounterLog: View { TableColumn("paxcounter.total") { pc in Text("\(pc.wifi + pc.ble)") } - TableColumn("uptime") { pc in + TableColumn("Uptime") { pc in let now = Date.now let later = now + TimeInterval(pc.uptime) let components = (now..