From 557b093232ddce1024a1b6471b2dcfa78cec9d82 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 22 Jan 2019 11:25:16 +0100 Subject: [PATCH] MacOS: StatusMenu: Properly localize menu title Partially revert "macOS: StatusMenu: Remove unused menu title" Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/Base.lproj/Localizable.strings | 1 + WireGuard/WireGuard/UI/macOS/StatusMenu.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings index f874a18..0b2a33d 100644 --- a/WireGuard/WireGuard/Base.lproj/Localizable.strings +++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings @@ -226,6 +226,7 @@ "macMenuNetworks (%@)" = "Networks: %@"; "macMenuNetworksNone" = "Networks: None"; +"macMenuTitle" = "WireGuard"; "macMenuManageTunnels" = "Manage tunnels"; "macMenuImportTunnels" = "Import tunnel(s) from file…"; "macMenuAddEmptyTunnel" = "Add empty tunnel…"; diff --git a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift index 035a51c..376a57a 100644 --- a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift +++ b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift @@ -25,7 +25,7 @@ class StatusMenu: NSMenu { init(tunnelsManager: TunnelsManager) { self.tunnelsManager = tunnelsManager - super.init(title: "") + super.init(title: tr("macMenuTitle")) addStatusMenuItems() addItem(NSMenuItem.separator())