mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
More strings
This commit is contained in:
parent
75a84a3529
commit
fc0e1daa7d
8 changed files with 37 additions and 30 deletions
|
|
@ -7,16 +7,11 @@ import SwiftUI
|
|||
//
|
||||
struct LastHeardText: View {
|
||||
var lastHeard: Date?
|
||||
|
||||
let sixMonthsAgo = Calendar.current.date(byAdding: .month, value: -6, to: Date())
|
||||
|
||||
var body: some View {
|
||||
if (lastHeard != nil && lastHeard! >= sixMonthsAgo!){
|
||||
|
||||
Text("Heard: \(lastHeard!, style: .relative) ago")
|
||||
|
||||
Text("heard")+Text(": \(lastHeard!, style: .relative) ")+Text("ago")
|
||||
} else {
|
||||
|
||||
Text("unknown.age")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,13 +30,7 @@ struct NodeList: View {
|
|||
NavigationSplitView {
|
||||
List (nodes, id: \.self, selection: $selection) { node in
|
||||
if nodes.count == 0 {
|
||||
Text("Scan for Radios").font(.largeTitle)
|
||||
Text("No Meshtastic Nodes Found").font(.title2)
|
||||
Text("Go to the bluetooth section in the bottom right menu and click the Start Scanning button to scan for nearby radios and find your Meshtastic device. Make sure your device is powered on and near your iPhone, iPad or Mac.")
|
||||
.font(.body)
|
||||
Text("Once the device shows under Available Devices touch the device you want to connect to and it will pull node information over BLE and populate the node list and mesh map in the Meshtastic app.")
|
||||
Text("Views with bluetooth functionality will show an indicator in the upper right hand corner showing if bluetooth is on, and if a device is connected.")
|
||||
.listRowSeparator(.visible)
|
||||
Text("no.nodes").font(.title)
|
||||
} else {
|
||||
NavigationLink(value: node) {
|
||||
let connected: Bool = (bleManager.connectedPeripheral != nil && bleManager.connectedPeripheral.num == node.num)
|
||||
|
|
@ -51,7 +45,7 @@ struct NodeList: View {
|
|||
Image(systemName: "repeat.circle.fill")
|
||||
.font(.title3)
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Currently Connected").font(.subheadline)
|
||||
Text("connected").font(.subheadline)
|
||||
.foregroundColor(.green)
|
||||
}
|
||||
}
|
||||
|
|
@ -85,7 +79,7 @@ struct NodeList: View {
|
|||
.padding([.top, .bottom])
|
||||
}
|
||||
}
|
||||
.navigationTitle("All Nodes")
|
||||
.navigationTitle("nodes")
|
||||
.navigationBarItems(leading:
|
||||
MeshtasticLogo()
|
||||
)
|
||||
|
|
@ -97,7 +91,7 @@ struct NodeList: View {
|
|||
if let node = selection {
|
||||
NodeDetail(node:node)
|
||||
} else {
|
||||
Text("Select a node")
|
||||
Text("select.node")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ struct RangeTestConfig: View {
|
|||
}
|
||||
}
|
||||
}
|
||||
.navigationTitle("Range Test Config")
|
||||
.navigationTitle("range.test.config")
|
||||
.navigationBarItems(trailing:
|
||||
ZStack {
|
||||
ConnectedDevice(bluetoothOn: bleManager.isSwitchedOn, deviceConnected: bleManager.connectedPeripheral != nil, name: (bleManager.connectedPeripheral != nil) ? bleManager.connectedPeripheral.shortName : "????")
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ struct SerialConfig: View {
|
|||
}
|
||||
}
|
||||
|
||||
.navigationTitle("Serial Config")
|
||||
.navigationTitle("serial.config")
|
||||
.navigationBarItems(trailing:
|
||||
|
||||
ZStack {
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ struct TelemetryConfig: View {
|
|||
}
|
||||
}
|
||||
|
||||
.navigationTitle("Telemetry Config")
|
||||
.navigationTitle("telemetry.config")
|
||||
.navigationBarItems(trailing:
|
||||
ZStack {
|
||||
ConnectedDevice(bluetoothOn: bleManager.isSwitchedOn, deviceConnected: bleManager.connectedPeripheral != nil, name: (bleManager.connectedPeripheral != nil) ? bleManager.connectedPeripheral.shortName : "????")
|
||||
|
|
|
|||
|
|
@ -134,30 +134,30 @@ struct Settings: View {
|
|||
} label: {
|
||||
Image(systemName: "point.3.connected.trianglepath.dotted")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Range Test (ESP32 Only)")
|
||||
Text("range.test")
|
||||
}
|
||||
NavigationLink {
|
||||
SerialConfig(node: nodes.first(where: { $0.num == connectedNodeNum }))
|
||||
} label: {
|
||||
Image(systemName: "terminal")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Serial")
|
||||
Text("serial")
|
||||
}
|
||||
NavigationLink {
|
||||
TelemetryConfig(node: nodes.first(where: { $0.num == connectedNodeNum }))
|
||||
} label: {
|
||||
Image(systemName: "chart.xyaxis.line")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Telemetry (Sensors)")
|
||||
Text("telemetry")
|
||||
}
|
||||
}
|
||||
Section(header: Text("Logging")) {
|
||||
Section(header: Text("logging")) {
|
||||
NavigationLink {
|
||||
MeshLog()
|
||||
} label: {
|
||||
Image(systemName: "list.bullet.rectangle")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Mesh Log")
|
||||
Text("mesh.log")
|
||||
}
|
||||
NavigationLink {
|
||||
let connectedNode = nodes.first(where: { $0.num == connectedNodeNum })
|
||||
|
|
@ -165,11 +165,11 @@ struct Settings: View {
|
|||
} label: {
|
||||
Image(systemName: "building.columns")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("Admin Message Log")
|
||||
Text("admin.log")
|
||||
}
|
||||
}
|
||||
|
||||
Section(header: Text("About")) {
|
||||
Section(header: Text("about")) {
|
||||
|
||||
NavigationLink {
|
||||
|
||||
|
|
@ -180,10 +180,9 @@ struct Settings: View {
|
|||
Image(systemName: "questionmark.app")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
|
||||
Text("About Meshtastic")
|
||||
Text("about.meshtastic")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.onAppear {
|
||||
|
||||
|
|
@ -192,7 +191,7 @@ struct Settings: View {
|
|||
|
||||
}
|
||||
.listStyle(GroupedListStyle())
|
||||
.navigationTitle("Settings")
|
||||
.navigationTitle("settings")
|
||||
.navigationBarItems(leading:
|
||||
MeshtasticLogo()
|
||||
)
|
||||
|
|
|
|||
|
|
@ -5,9 +5,11 @@
|
|||
Created by Garth Vander Houwen on 12/12/22.
|
||||
|
||||
*/
|
||||
"ago"="prije";
|
||||
"available.radios"="Verfügbare Funkgeräte";
|
||||
"cancel"="Absagen";
|
||||
"connected.radio"="Verbundenes Radio";
|
||||
"delete"="Löschen";
|
||||
"heard"="Čuo";
|
||||
"save"="Speichern";
|
||||
"unknown.age"="Unbekanntes Alter";
|
||||
|
|
|
|||
|
|
@ -3,8 +3,13 @@
|
|||
Meshtastic
|
||||
|
||||
Copyright(c) Garth Vander Houwen on 12/12/22.
|
||||
|
||||
|
||||
*/
|
||||
"about"="About";
|
||||
"about.meshtastic"="About Meshtastic";
|
||||
"admin"="Admin";
|
||||
"admin.log"="Admin Message Log";
|
||||
"ago"="ago";
|
||||
"available.radios"="Available Radios";
|
||||
"ble.name"="BLE Name";
|
||||
"bluetooth"="Bluetooth";
|
||||
|
|
@ -12,6 +17,7 @@
|
|||
"channels"="Channels (groups)";
|
||||
"connected.radio"="Connected Radio";
|
||||
"communicating"="Communicating with device. .";
|
||||
"connected"="Currently Connected";
|
||||
"connecting"="Connecting . .";
|
||||
"contacts"="Contacts";
|
||||
"delete"="Delete";
|
||||
|
|
@ -19,14 +25,25 @@
|
|||
"distance"="Distance";
|
||||
"disconnect"="Disconnect";
|
||||
"firmware.version"="Firmware Version";
|
||||
"heard"="Heard";
|
||||
"logging"="Logging";
|
||||
"map"="Mesh Map";
|
||||
"mesh.log"="Mesh Log";
|
||||
"messages"="Messages";
|
||||
"nodes"="Nodes";
|
||||
"no.nodes"="No Meshtastic Nodes Found";
|
||||
"not.connected"="No device connected";
|
||||
"preferred.radio"="Preferred Radio";
|
||||
"range.test"="Range Test";
|
||||
"range.test.config"="Range Test Config";
|
||||
"save"="Save";
|
||||
"serial"="Serial";
|
||||
"serial.config"="Serial Config";
|
||||
"settings"="Settings";
|
||||
"subscribed"="Subscribed to mesh";
|
||||
"select.contact"="Select a Contact";
|
||||
"select.node"="Select a Node";
|
||||
"set.region"="Set LoRa Region";
|
||||
"telemetry"="Telemetry (Sensors)";
|
||||
"telemetry.config"="Telemetry Config";
|
||||
"unknown.age"="Unknown Age";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue