mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Localize new settings
This commit is contained in:
parent
ef59160b16
commit
718842bafb
8 changed files with 21 additions and 18 deletions
|
|
@ -91,7 +91,7 @@ enum GpsUpdateIntervals: Int, CaseIterable, Identifiable {
|
|||
case .twentyFourHours:
|
||||
return "interval.twentyfour.hours".localized
|
||||
case .maxInt32:
|
||||
return "on.boot"
|
||||
return "on.boot".localized
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,14 +65,14 @@ struct AppSettings: View {
|
|||
}
|
||||
Section(header: Text("Location Settings")) {
|
||||
Toggle(isOn: $provideLocation) {
|
||||
Label("provide.location", systemImage: "location.circle.fill")
|
||||
Label("appsettings.provide.location", systemImage: "location.circle.fill")
|
||||
}
|
||||
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
|
||||
Toggle(isOn: $enableSmartPosition) {
|
||||
Label("appsettings.enablesmartposition", systemImage: "brain.fill")
|
||||
}
|
||||
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
|
||||
if UserDefaults.provideLocation {
|
||||
if provideLocation {
|
||||
Toggle(isOn: $enableSmartPosition) {
|
||||
Label("appsettings.smartposition", systemImage: "brain.fill")
|
||||
}
|
||||
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
|
||||
VStack {
|
||||
Picker("update.interval", selection: $provideLocationInterval) {
|
||||
ForEach(LocationUpdateInterval.allCases) { lu in
|
||||
|
|
@ -135,7 +135,7 @@ struct AppSettings: View {
|
|||
totalDownloadedTileSize = tileManager.getAllDownloadedSize()
|
||||
})
|
||||
}
|
||||
.navigationTitle("app.settings")
|
||||
.navigationTitle("appsettings")
|
||||
.navigationBarItems(trailing:
|
||||
ZStack {
|
||||
ConnectedDevice(bluetoothOn: bleManager.isSwitchedOn, deviceConnected: bleManager.connectedPeripheral != nil, name: (bleManager.connectedPeripheral != nil) ? bleManager.connectedPeripheral.shortName : "?")
|
||||
|
|
|
|||
|
|
@ -156,7 +156,6 @@ struct PositionConfig: View {
|
|||
.padding(.top, 5)
|
||||
.padding(.bottom, 5)
|
||||
|
||||
|
||||
if gpsMode == 1 {
|
||||
Picker("Update Interval", selection: $gpsUpdateInterval) {
|
||||
ForEach(GpsUpdateIntervals.allCases) { ui in
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ struct Settings: View {
|
|||
} label: {
|
||||
Image(systemName: "gearshape")
|
||||
.symbolRenderingMode(.hierarchical)
|
||||
Text("app.settings")
|
||||
Text("appsettings")
|
||||
}
|
||||
.tag(SettingsSidebar.appSettings)
|
||||
if #available(iOS 17.0, macOS 14.0, *) {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
"always.on"="Immer an";
|
||||
"ambient.lighting"="Ambient Lighting";
|
||||
"ambient.lighting.config"="Ambient Lighting Config";
|
||||
"app.settings"="App Einstellungen";
|
||||
"appsettings"="App Einstellungen";
|
||||
"appsettings.provide.location"="Standort im Mesh veröffentlichen";
|
||||
"appsettings.smartposition"="Smart Position";
|
||||
"are.you.sure"="Bist Du sicher?";
|
||||
"ascii.capable"="ASCII fähig";
|
||||
"available.radios"="Geräte in der Nähe";
|
||||
|
|
@ -223,7 +225,6 @@
|
|||
"position"="Position";
|
||||
"position.config"="Positionseinstellungen";
|
||||
"preferred.radio"="Bevorzugtes Gerät";
|
||||
"provide.location"="Standort im Mesh veröffentlichen";
|
||||
"radio.configuration"="Geräteeinstellungen";
|
||||
"range.test"="Entfernungstest";
|
||||
"range.test.blocked"="Block Range Test";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
"always.on"="Always On";
|
||||
"ambient.lighting"="Ambient Lighting";
|
||||
"ambient.lighting.config"="Ambient Lighting Config";
|
||||
"app.settings"="App Settings";
|
||||
"appsettings"="App Settings";
|
||||
"appsettings.provide.location"="Share location";
|
||||
"appsettings.smartposition"="Smart Position";
|
||||
"are.you.sure"="Are you sure?";
|
||||
"ascii.capable"="ASCII Capable";
|
||||
"available.radios"="Available Radios";
|
||||
|
|
@ -230,7 +232,6 @@
|
|||
"position"="Position";
|
||||
"position.config"="Position Config";
|
||||
"preferred.radio"="Preferred Radio";
|
||||
"provide.location"="Share location";
|
||||
"radio.configuration"="Radio Configuration";
|
||||
"range.test"="Range Test";
|
||||
"range.test.blocked"="Block Range Test";
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@
|
|||
"always.on"="Zawsze włączone";
|
||||
"ambient.lighting"="Ambient Lighting";
|
||||
"ambient.lighting.config"="Ambient Lighting Config";
|
||||
"app.settings"="Ustawienia aplikacji";
|
||||
"appsettings"="Ustawienia aplikacji";
|
||||
"appsettings.provide.location"="Udostępnij lokalizację";
|
||||
"appsettings.smartposition"="Smart Position";
|
||||
"are.you.sure"="Jesteś pewny?";
|
||||
"ascii.capable"="Zgodny z ASCII";
|
||||
"available.radios"="Dostępne radia";
|
||||
|
|
@ -224,7 +226,6 @@
|
|||
"position"="Pozycja";
|
||||
"position.config"="Konfiguracja pozycji";
|
||||
"preferred.radio"="Preferowane radio";
|
||||
"provide.location"="Udostępnij lokalizację";
|
||||
"radio.configuration"="Konfiguracja radia";
|
||||
"range.test"="Test zasięgu";
|
||||
"range.test.blocked"="Block Range Test";
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@
|
|||
"always.on"="常亮";
|
||||
"ambient.lighting"="Ambient Lighting";
|
||||
"ambient.lighting.config"="Ambient Lighting Config";
|
||||
"app.settings"="通用设置";
|
||||
"appsettings"="通用设置";
|
||||
"appsettings.provide.location"="提供定位到 Mesh 网络";
|
||||
"appsettings.smartposition"="Smart Position";
|
||||
"are.you.sure"="是否确认?";
|
||||
"ascii.capable"="ASCII Capable";
|
||||
"available.radios"="可以连接的电台";
|
||||
|
|
@ -223,7 +225,6 @@
|
|||
"position"="定位";
|
||||
"position.config"="定位配置";
|
||||
"preferred.radio"="首选电台";
|
||||
"provide.location"="提供定位到 Mesh 网络";
|
||||
"radio.configuration"="电台配置";
|
||||
"range.test"="拉距测试";
|
||||
"range.test.blocked"="区块范围测试";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue