macOS: s/macMenuStatus/macStatus/g;

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-01-03 17:49:32 +05:30
parent ada7db3dca
commit 4a4eeb4a21
2 changed files with 6 additions and 3 deletions

View File

@ -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: %@";

View File

@ -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: ", ")