mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Fix strings detections and translates the entire "Stats" section
This commit is contained in:
parent
acfa949879
commit
041dfbb824
2 changed files with 16 additions and 16 deletions
|
|
@ -12966,7 +12966,7 @@
|
||||||
"pt-BR" : {
|
"pt-BR" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
"state" : "translated",
|
"state" : "translated",
|
||||||
"value" : "Atualizado pelo Última vez"
|
"value" : "Última Atualização Há"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5884,7 +5884,7 @@ struct StatsSettings: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Form {
|
Form {
|
||||||
Section {
|
Section {
|
||||||
Defaults.Toggle("Enable system stats monitoring", key: .enableStatsFeature)
|
Defaults.Toggle(String(localized: "Enable system stats monitoring"), key: .enableStatsFeature)
|
||||||
.settingsHighlight(id: highlightID("Enable system stats monitoring"))
|
.settingsHighlight(id: highlightID("Enable system stats monitoring"))
|
||||||
.onChange(of: enableStatsFeature) { _, newValue in
|
.onChange(of: enableStatsFeature) { _, newValue in
|
||||||
if !newValue {
|
if !newValue {
|
||||||
|
|
@ -5904,7 +5904,7 @@ struct StatsSettings: View {
|
||||||
|
|
||||||
if enableStatsFeature {
|
if enableStatsFeature {
|
||||||
Section {
|
Section {
|
||||||
Defaults.Toggle("Stop monitoring after closing the notch", key: .statsStopWhenNotchCloses)
|
Defaults.Toggle(String(localized: "Stop monitoring after closing the notch"), key: .statsStopWhenNotchCloses)
|
||||||
.settingsHighlight(id: highlightID("Stop monitoring after closing the notch"))
|
.settingsHighlight(id: highlightID("Stop monitoring after closing the notch"))
|
||||||
.help("When enabled, stats monitoring stops a few seconds after the notch closes.")
|
.help("When enabled, stats monitoring stops a few seconds after the notch closes.")
|
||||||
|
|
||||||
|
|
@ -5944,15 +5944,15 @@ struct StatsSettings: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
Defaults.Toggle("CPU Usage", key: .showCpuGraph)
|
Defaults.Toggle(String(localized: "CPU Usage"), key: .showCpuGraph)
|
||||||
.settingsHighlight(id: highlightID("CPU Usage"))
|
.settingsHighlight(id: highlightID("CPU Usage"))
|
||||||
Defaults.Toggle("Memory Usage", key: .showMemoryGraph)
|
Defaults.Toggle(String(localized: "Memory Usage"), key: .showMemoryGraph)
|
||||||
.settingsHighlight(id: highlightID("Memory Usage"))
|
.settingsHighlight(id: highlightID("Memory Usage"))
|
||||||
Defaults.Toggle("GPU Usage", key: .showGpuGraph)
|
Defaults.Toggle(String(localized: "GPU Usage"), key: .showGpuGraph)
|
||||||
.settingsHighlight(id: highlightID("GPU Usage"))
|
.settingsHighlight(id: highlightID("GPU Usage"))
|
||||||
Defaults.Toggle("Network Activity", key: .showNetworkGraph)
|
Defaults.Toggle(String(localized: "Network Activity"), key: .showNetworkGraph)
|
||||||
.settingsHighlight(id: highlightID("Network Activity"))
|
.settingsHighlight(id: highlightID("Network Activity"))
|
||||||
Defaults.Toggle("Disk I/O", key: .showDiskGraph)
|
Defaults.Toggle(String(localized: "Disk I/O"), key: .showDiskGraph)
|
||||||
.settingsHighlight(id: highlightID("Disk I/O"))
|
.settingsHighlight(id: highlightID("Disk I/O"))
|
||||||
} header: {
|
} header: {
|
||||||
Text("Graph Visibility")
|
Text("Graph Visibility")
|
||||||
|
|
@ -5986,7 +5986,7 @@ struct StatsSettings: View {
|
||||||
if statsManager.isMonitoring {
|
if statsManager.isMonitoring {
|
||||||
if showCpuGraph {
|
if showCpuGraph {
|
||||||
HStack {
|
HStack {
|
||||||
Text("CPU Usage")
|
Text(String(localized: "CPU Usage"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(statsManager.cpuUsageString)
|
Text(statsManager.cpuUsageString)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|
@ -5995,7 +5995,7 @@ struct StatsSettings: View {
|
||||||
|
|
||||||
if showMemoryGraph {
|
if showMemoryGraph {
|
||||||
HStack {
|
HStack {
|
||||||
Text("Memory Usage")
|
Text(String(localized: "Memory Usage"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(statsManager.memoryUsageString)
|
Text(statsManager.memoryUsageString)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|
@ -6004,7 +6004,7 @@ struct StatsSettings: View {
|
||||||
|
|
||||||
if showGpuGraph {
|
if showGpuGraph {
|
||||||
HStack {
|
HStack {
|
||||||
Text("GPU Usage")
|
Text(String(localized: "GPU Usage"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(statsManager.gpuUsageString)
|
Text(statsManager.gpuUsageString)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|
@ -6013,14 +6013,14 @@ struct StatsSettings: View {
|
||||||
|
|
||||||
if showNetworkGraph {
|
if showNetworkGraph {
|
||||||
HStack {
|
HStack {
|
||||||
Text("Network Download")
|
Text(String(localized: "Network Download"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(String(format: "%.1f MB/s", statsManager.networkDownload))
|
Text(String(format: "%.1f MB/s", statsManager.networkDownload))
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Network Upload")
|
Text(String(localized: "Network Upload"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(String(format: "%.1f MB/s", statsManager.networkUpload))
|
Text(String(format: "%.1f MB/s", statsManager.networkUpload))
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|
@ -6029,14 +6029,14 @@ struct StatsSettings: View {
|
||||||
|
|
||||||
if showDiskGraph {
|
if showDiskGraph {
|
||||||
HStack {
|
HStack {
|
||||||
Text("Disk Read")
|
Text(String(localized: "Disk Read"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(String(format: "%.1f MB/s", statsManager.diskRead))
|
Text(String(format: "%.1f MB/s", statsManager.diskRead))
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Disk Write")
|
Text(String(localized: "Disk Write"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(String(format: "%.1f MB/s", statsManager.diskWrite))
|
Text(String(format: "%.1f MB/s", statsManager.diskWrite))
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|
@ -6044,7 +6044,7 @@ struct StatsSettings: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Last Updated")
|
Text(String(localized: "Last Updated"))
|
||||||
Spacer()
|
Spacer()
|
||||||
Text(statsManager.lastUpdated, style: .relative)
|
Text(statsManager.lastUpdated, style: .relative)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue