From af9ece45f39955ed925b46fb07c2d38264305868 Mon Sep 17 00:00:00 2001 From: JoniVR Date: Wed, 15 Jan 2020 23:37:37 +0100 Subject: [PATCH] Use localized string for unknown display --- MonitorControl/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MonitorControl/AppDelegate.swift b/MonitorControl/AppDelegate.swift index 4eec74c..62ba3f5 100644 --- a/MonitorControl/AppDelegate.swift +++ b/MonitorControl/AppDelegate.swift @@ -90,7 +90,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { } for screen in screens { - let name = screen.displayName ?? "unknown" + let name = screen.displayName ?? NSLocalizedString("Unknown", comment: "Unknown display name") let id = screen.displayID let isEnabled = (prefs.object(forKey: "\(id)-state") as? Bool) ?? true let display = Display(screen.displayID, name: name, isBuiltin: screen.isBuiltin, isEnabled: isEnabled)