]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
macOS: Localize tooltips
authorRoopesh Chander <roop@roopc.net>
Sun, 17 Mar 2019 14:49:25 +0000 (20:19 +0530)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 18 Mar 2019 05:46:55 +0000 (06:46 +0100)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/Base.lproj/Localizable.strings
WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift

index b42d40f3954e9a64fdd2990d7502681c7322aee9..e9658d2622d2d045055e793e3fd09456a79feaae 100644 (file)
 "macAppExitingWithActiveTunnelInfo" = "The tunnel will remain active after exiting. You may disable it by reopening this application or through the Network panel in System Preferences.";
 "macPrivacyNoticeMessage" = "Privacy notice: be sure you trust this configuration file";
 "macPrivacyNoticeInfo" = "You will be prompted by the system to allow or disallow adding a VPN configuration. While this application does not send any information to the WireGuard project, information is by design sent to the servers specified inside of the configuration file you have just added, which configures your computer to use those servers as a VPN. Be certain that you trust this configuration before clicking “Allow” in the following dialog.";
+
+// Mac tooltip
+
+"macToolTipEditTunnel" = "Edit tunnel (⌘E)";
+"macToolTipToggleStatus" = "Toggle status (⌘T)";
index 9d7754257dc2810acfcb7fd9f269490c5e87e9b1..ec8850a64fdd5d3fbf70eede7984aedd250b7124 100644 (file)
@@ -56,7 +56,7 @@ class TunnelDetailTableViewController: NSViewController {
         button.title = tr("Edit")
         button.setButtonType(.momentaryPushIn)
         button.bezelStyle = .rounded
-        button.toolTip = "Edit tunnel (⌘E)"
+        button.toolTip = tr("macToolTipEditTunnel")
         return button
     }()
 
@@ -406,7 +406,7 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
         let cell: ButtonRow = tableView.dequeueReusableCell()
         cell.buttonTitle = TunnelDetailTableViewController.localizedToggleStatusActionText(forStatus: tunnel.status)
         cell.isButtonEnabled = (tunnel.status == .active || tunnel.status == .inactive)
-        cell.buttonToolTip = "Toggle status (⌘T)"
+        cell.buttonToolTip = tr("macToolTipToggleStatus")
         cell.onButtonClicked = { [weak self] in
             self?.handleToggleActiveStatusAction()
         }