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:
WinTP
2025-01-12 22:47:56 +08:00
committed by GitHub
parent 9fef344e12
commit 69be509d5e
43 changed files with 43 additions and 4 deletions

View File

@@ -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) {

View File

@@ -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(

View File

@@ -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

View File

@@ -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 }