MacOS: StatusMenu: Properly localize menu title

Partially revert "macOS: StatusMenu: Remove unused menu title"

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2019-01-22 11:25:16 +01:00
parent 6f9fa35c5a
commit 557b093232
2 changed files with 2 additions and 1 deletions

View File

@ -226,6 +226,7 @@
"macMenuNetworks (%@)" = "Networks: %@"; "macMenuNetworks (%@)" = "Networks: %@";
"macMenuNetworksNone" = "Networks: None"; "macMenuNetworksNone" = "Networks: None";
"macMenuTitle" = "WireGuard";
"macMenuManageTunnels" = "Manage tunnels"; "macMenuManageTunnels" = "Manage tunnels";
"macMenuImportTunnels" = "Import tunnel(s) from file…"; "macMenuImportTunnels" = "Import tunnel(s) from file…";
"macMenuAddEmptyTunnel" = "Add empty tunnel…"; "macMenuAddEmptyTunnel" = "Add empty tunnel…";

View File

@ -25,7 +25,7 @@ class StatusMenu: NSMenu {
init(tunnelsManager: TunnelsManager) { init(tunnelsManager: TunnelsManager) {
self.tunnelsManager = tunnelsManager self.tunnelsManager = tunnelsManager
super.init(title: "") super.init(title: tr("macMenuTitle"))
addStatusMenuItems() addStatusMenuItems()
addItem(NSMenuItem.separator()) addItem(NSMenuItem.separator())