mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
lang: added several missing localization strings (#2327)
Signed-off-by: Serhiy Mytrovtsiy <mitrovtsiy@ukr.net> Co-authored-by: Serhiy Mytrovtsiy <mitrovtsiy@ukr.net>
This commit is contained in:
@@ -39,7 +39,7 @@ internal class Popup: PopupWrapper {
|
||||
private var processes: ProcessesView? = nil
|
||||
private var processesView: NSView? = nil
|
||||
|
||||
private let settingsSection = PreferencesSection(label: "Drives")
|
||||
private let settingsSection = PreferencesSection(label: localizedString("Drives"))
|
||||
private var lastList: [String] = []
|
||||
|
||||
public init(_ module: ModuleType) {
|
||||
|
||||
@@ -60,7 +60,7 @@ class Notifications: NotificationsWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
let section = PreferencesSection(label: typ.rawValue)
|
||||
let section = PreferencesSection(label: localizedString(typ.rawValue))
|
||||
groups.forEach { (group: SensorGroup) in
|
||||
filtered.filter{ $0.group == group }.forEach { (s: Sensor_p) in
|
||||
let btn = selectView(
|
||||
|
||||
@@ -136,7 +136,7 @@ internal class Popup: PopupWrapper {
|
||||
}
|
||||
|
||||
if !reload {
|
||||
let section = PreferencesSection(label: typ.rawValue)
|
||||
let section = PreferencesSection(label: localizedString(typ.rawValue))
|
||||
section.identifier = NSUserInterfaceItemIdentifier("sensor")
|
||||
groups.forEach { (group: SensorGroup) in
|
||||
filtered.filter{ $0.group == group }.forEach { (s: Sensor_p) in
|
||||
|
||||
@@ -120,7 +120,7 @@ internal class Settings: NSStackView, Settings_v {
|
||||
|
||||
var buttonList: [KeyValue_t] = []
|
||||
types.forEach { (typ: SensorType) in
|
||||
let section = PreferencesSection(label: typ.rawValue)
|
||||
let section = PreferencesSection(label: localizedString(typ.rawValue))
|
||||
section.identifier = NSUserInterfaceItemIdentifier("sensor")
|
||||
|
||||
let filtered = sensors.filter{ $0.type == typ }
|
||||
|
||||
Reference in New Issue
Block a user