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:
parent
6f9fa35c5a
commit
557b093232
|
@ -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…";
|
||||||
|
|
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue