From d9b677fa6d145f8168e44520bd4e28e3fca2b8b9 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 6 Jun 2024 09:58:15 -0700 Subject: [PATCH] localized log strings --- Meshtastic/Views/Helpers/LogDetail.swift | 14 +++++++------- Meshtastic/Views/Settings/AppLog.swift | 8 ++++---- de.lproj/Localizable.strings | 6 ++++++ en.lproj/Localizable.strings | 6 ++++++ fr.lproj/Localizable.strings | 6 ++++++ he.lproj/Localizable.strings | 6 ++++++ pl.lproj/Localizable.strings | 6 ++++++ pt-PT.lproj/Localizable.strings | 6 ++++++ se.lproj/Localizable.strings | 6 ++++++ zh-Hans.lproj/Localizable.strings | 6 ++++++ zh-Hant-TW.lproj/Localizable.strings | 6 ++++++ 11 files changed, 65 insertions(+), 11 deletions(-) diff --git a/Meshtastic/Views/Helpers/LogDetail.swift b/Meshtastic/Views/Helpers/LogDetail.swift index 45f81017..079d00f2 100644 --- a/Meshtastic/Views/Helpers/LogDetail.swift +++ b/Meshtastic/Views/Helpers/LogDetail.swift @@ -29,7 +29,7 @@ struct LogDetail: View { List { /// Time Label { - Text("time".localized + ":") + Text("log.time".localized + ":") .font(idiom == .phone ? .callout : .title) LastHeardText(lastHeard: log.date) .font(idiom == .phone ? .callout : .title) @@ -43,7 +43,7 @@ struct LogDetail: View { .listRowSeparator(.visible) /// Subsystem Label { - Text("subsystem".localized + ":") + Text("log.subsystem".localized + ":") .font(idiom == .phone ? .callout : .title) Text(log.subsystem) .font(idiom == .phone ? .callout : .title) @@ -57,7 +57,7 @@ struct LogDetail: View { .listRowSeparator(.visible) /// Process Label { - Text("process".localized + ":") + Text("log.process".localized + ":") .font(idiom == .phone ? .callout : .title) Text(log.process) .font(idiom == .phone ? .callout : .title) @@ -71,7 +71,7 @@ struct LogDetail: View { .listRowSeparator(.visible) /// Category Label { - Text("category".localized + ":") + Text("log.category".localized + ":") .font(idiom == .phone ? .callout : .title) Text(log.category) .font(idiom == .phone ? .callout : .title) @@ -85,12 +85,12 @@ struct LogDetail: View { .listRowSeparator(.visible) /// Level Label { - Text("level".localized + ":") + Text("log.level".localized + ":") .font(idiom == .phone ? .callout : .title) Text(log.level.description) .font(idiom == .phone ? .callout : .title) } icon: { - Image(systemName: "shield") + Image(systemName: "stairs") .symbolRenderingMode(.hierarchical) .font(idiom == .phone ? .callout : .title) .frame(width: 35) @@ -99,7 +99,7 @@ struct LogDetail: View { .listRowSeparator(.visible) /// message Label { - Text("message".localized + ":") + Text("log.message".localized + ":") .font(idiom == .phone ? .callout : .title) } icon: { diff --git a/Meshtastic/Views/Settings/AppLog.swift b/Meshtastic/Views/Settings/AppLog.swift index 8f8db623..6eaff0a3 100644 --- a/Meshtastic/Views/Settings/AppLog.swift +++ b/Meshtastic/Views/Settings/AppLog.swift @@ -29,18 +29,18 @@ struct AppLog: View { Table(logs, selection: $selection, sortOrder: $sortOrder) { if idiom != .phone { - TableColumn("Time", value: \.date) { value in + TableColumn("log.time", value: \.date) { value in Text(value.date.formatted(dateFormatStyle)) } .width(min: 100, max: 125) - TableColumn("Category", value: \.category) + TableColumn("log.category", value: \.category) .width(min: 100, max: 125) - TableColumn("Level") { value in + TableColumn("log.level") { value in Text(value.level.description) } .width(min: 50, max: 100) } - TableColumn("Message", value: \.composedMessage) + TableColumn("log.message", value: \.composedMessage) .width(ideal: 200, max: .infinity) } diff --git a/de.lproj/Localizable.strings b/de.lproj/Localizable.strings index 511ecdaa..83fe06d3 100644 --- a/de.lproj/Localizable.strings +++ b/de.lproj/Localizable.strings @@ -173,6 +173,12 @@ "interval.seventytwo.hours"="Seventy Two Hours"; "keyboard.type"="Keyboard Typ"; "logging"="Logging"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="LoRa Einstellungen"; "map"="Mesh Karte"; diff --git a/en.lproj/Localizable.strings b/en.lproj/Localizable.strings index 4c507879..fb3af6f6 100644 --- a/en.lproj/Localizable.strings +++ b/en.lproj/Localizable.strings @@ -177,6 +177,12 @@ "interval.seventytwo.hours"="Seventy Two Hours"; "keyboard.type"="Keyboard Type"; "logging"="Logging"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="LoRa Config"; "map"="Mesh Map"; diff --git a/fr.lproj/Localizable.strings b/fr.lproj/Localizable.strings index 785a2012..3c517ac3 100644 --- a/fr.lproj/Localizable.strings +++ b/fr.lproj/Localizable.strings @@ -154,6 +154,12 @@ "interval.seventytwo.hours"="Soixante douze heures"; "keyboard.type"="Type de clavier"; "logging"="Enregistrement"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="Configuration LoRa"; "map"="Carte de maillage"; diff --git a/he.lproj/Localizable.strings b/he.lproj/Localizable.strings index 154c2391..fd844980 100644 --- a/he.lproj/Localizable.strings +++ b/he.lproj/Localizable.strings @@ -177,6 +177,12 @@ "interval.seventytwo.hours"="שבעים ושתיים שעות"; "keyboard.type"="סוג מקלדת"; "logging"="רישום"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="לורה"; "lora.config"="הגדרות לורה"; "map"="מפת מש"; diff --git a/pl.lproj/Localizable.strings b/pl.lproj/Localizable.strings index eb8372b0..e09d745b 100644 --- a/pl.lproj/Localizable.strings +++ b/pl.lproj/Localizable.strings @@ -175,6 +175,12 @@ "interval.seventytwo.hours"="Siedemdziesiąt Dwie Godziny"; "keyboard.type"="Typ Klawiatury"; "logging"="Rejestracja"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="Konfiguracja LoRa"; "map"="Mapa Sieci"; diff --git a/pt-PT.lproj/Localizable.strings b/pt-PT.lproj/Localizable.strings index 599955bc..f5131a0c 100644 --- a/pt-PT.lproj/Localizable.strings +++ b/pt-PT.lproj/Localizable.strings @@ -177,6 +177,12 @@ "interval.seventytwo.hours"="Setenta e Duas Horas"; "keyboard.type"="Tipo de Teclado"; "logging"="Registo"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="Configuração LoRa"; "map"="Mapa do Mesh"; diff --git a/se.lproj/Localizable.strings b/se.lproj/Localizable.strings index e45ca2fe..81d00170 100644 --- a/se.lproj/Localizable.strings +++ b/se.lproj/Localizable.strings @@ -177,6 +177,12 @@ "interval.seventytwo.hours"="Sjuttiotvå Timmar"; "keyboard.type"="Tangentbordstyp"; "logging"="Loggning"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="LoRa Konfiguration"; "map"="Mesh Karta"; diff --git a/zh-Hans.lproj/Localizable.strings b/zh-Hans.lproj/Localizable.strings index 5606f44b..3a241f3f 100644 --- a/zh-Hans.lproj/Localizable.strings +++ b/zh-Hans.lproj/Localizable.strings @@ -173,6 +173,12 @@ "interval.eventytwo.hours"="七十二小时"; "keyboard.type"="键盘类型"; "logging"="加载中"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="LoRa 配置"; "map"="Mesh 地图"; diff --git a/zh-Hant-TW.lproj/Localizable.strings b/zh-Hant-TW.lproj/Localizable.strings index 1665f916..fdc02df2 100644 --- a/zh-Hant-TW.lproj/Localizable.strings +++ b/zh-Hant-TW.lproj/Localizable.strings @@ -173,6 +173,12 @@ "interval.eventytwo.hours"="七十二小時"; "keyboard.type"="鍵盤類型"; "logging"="加載中"; +"log.time"="Time"; +"log.subsystem"="Subsystem"; +"log.process"="Process"; +"log.category"="Category"; +"log.level"="Level"; +"log.message"="Message"; "lora"="LoRa"; "lora.config"="LoRa 設定"; "map"="Mesh 地圖";