localized log strings

This commit is contained in:
Garth Vander Houwen 2024-06-06 09:58:15 -07:00
parent 871edf2eaf
commit d9b677fa6d
11 changed files with 65 additions and 11 deletions

View file

@ -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: {

View file

@ -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)
}

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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"="מפת מש";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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 地图";

View file

@ -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 地圖";