diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings index b1aa979..f7c440c 100644 --- a/WireGuard/WireGuard/Base.lproj/Localizable.strings +++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings @@ -223,7 +223,6 @@ // Mac status bar menu -"macMenuStatus (%@)" = "Status: %@"; "macMenuNetworks (%@)" = "Networks: %@"; "macMenuNetworksInactive" = "Networks: -"; "macMenuNetworksNone" = "Networks: None"; @@ -234,3 +233,7 @@ // Mac detail view fields "macDetailFieldKey (%@)" = "%@:"; + +// Mac status display + +"macStatus (%@)" = "Status: %@"; diff --git a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift index a539073..b18f7b1 100644 --- a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift +++ b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift @@ -39,7 +39,7 @@ class StatusMenu: NSMenu { } func addStatusMenuItems() { - let statusTitle = tr(format: "macMenuStatus (%@)", tr("tunnelStatusInactive")) + let statusTitle = tr(format: "macStatus (%@)", tr("tunnelStatusInactive")) let statusMenuItem = NSMenuItem(title: statusTitle, action: #selector(manageTunnelsClicked), keyEquivalent: "") statusMenuItem.isEnabled = false addItem(statusMenuItem) @@ -75,7 +75,7 @@ class StatusMenu: NSMenu { statusText = tr("tunnelStatusRestarting") } - statusMenuItem.title = tr(format: "macMenuStatus (%@)", statusText) + statusMenuItem.title = tr(format: "macStatus (%@)", statusText) let addresses = tunnel.tunnelConfiguration?.interface.addresses ?? [] let addressesString = addresses.map { $0.stringRepresentation }.joined(separator: ", ")