From 8f3d3998ea2b5cf4efb78c48cf7aaa4205a36386 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 10 Aug 2023 10:27:54 -0700 Subject: [PATCH] localize --- Meshtastic/Views/Nodes/NodeList.swift | 2 +- Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift | 2 +- de.lproj/Localizable.strings | 3 ++- en.lproj/Localizable.strings | 3 ++- zh-Hans.lproj/Localizable.strings | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Meshtastic/Views/Nodes/NodeList.swift b/Meshtastic/Views/Nodes/NodeList.swift index 413720ed..759cd6ca 100644 --- a/Meshtastic/Views/Nodes/NodeList.swift +++ b/Meshtastic/Views/Nodes/NodeList.swift @@ -102,7 +102,7 @@ struct NodeList: View { .padding([.top, .bottom]) } } - .navigationTitle("Nodes (\(nodes.count))") + .navigationTitle(String.localizedStringWithFormat("nodes %@".localized, String(nodes.count))) .navigationBarItems(leading: MeshtasticLogo() ) diff --git a/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift b/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift index 0146af9d..e462f9a5 100644 --- a/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift +++ b/Meshtastic/Views/Settings/Config/Module/MQTTConfig.swift @@ -62,7 +62,7 @@ struct MQTTConfig: View { .toggleStyle(SwitchToggleStyle(tint: .accentColor)) Toggle(isOn: $proxyToClientEnabled) { - Label("proxyToClientEnabled", systemImage: "iphone.radiowaves.left.and.right") + Label("mqtt.clientproxy", systemImage: "iphone.radiowaves.left.and.right") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) diff --git a/de.lproj/Localizable.strings b/de.lproj/Localizable.strings index 720cccf5..ea8b3b90 100644 --- a/de.lproj/Localizable.strings +++ b/de.lproj/Localizable.strings @@ -189,11 +189,12 @@ "module.configuration"="Modul Konfiguration"; "mqtt"="MQTT"; "mqtt.config"="MQTT Config"; +"mqtt.clientproxy"="MQTT Client Proxy"; "mqtt.username"="Benutzername"; "name"="Name"; "network"="Netzwerk"; "network.config"="Netzwerkeinstellungen"; -"nodes"="Nodes"; +"nodes %@"="Nodes (%@)"; "no.nodes"="Keine Meshtastic Nodes gefunden"; "not.connected"="Kein Gerät verbunden"; "numbers.punctuation"="Ziffern und Interpunktion"; diff --git a/en.lproj/Localizable.strings b/en.lproj/Localizable.strings index 040aa124..a7b870a6 100644 --- a/en.lproj/Localizable.strings +++ b/en.lproj/Localizable.strings @@ -189,11 +189,12 @@ "module.configuration"="Module Configuration"; "mqtt"="MQTT"; "mqtt.config"="MQTT Config"; +"mqtt.clientproxy"="MQTT Client Proxy"; "mqtt.username"="Username"; "name"="Name"; "network"="Network"; "network.config"="Network Config"; -"nodes"="Nodes"; +"nodes %@"="Nodes (%@)"; "no.nodes"="No Meshtastic Nodes Found"; "not.connected"="No device connected"; "numbers.punctuation"="Numbers and Punctuation"; diff --git a/zh-Hans.lproj/Localizable.strings b/zh-Hans.lproj/Localizable.strings index 949d7d8a..dac0df52 100644 --- a/zh-Hans.lproj/Localizable.strings +++ b/zh-Hans.lproj/Localizable.strings @@ -189,11 +189,12 @@ "module.configuration"="模块配置"; "mqtt"="MQTT"; "mqtt.config"="MQTT 配置"; +"mqtt.clientproxy"="MQTT Client Proxy"; "mqtt.username"="用户名称"; "name"="名称"; "network"="网络"; "network.config"="网络配置"; -"nodes"="节点"; +"nodes %@"="节点 (%@)"; "no.nodes"="未找到 Meshtastic 节点"; "not.connected"="未连接到电台"; "numbers.punctuation"="数字和标点符号";