aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-03-17 20:19:25 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-18 06:46:55 +0100
commit9795b0609a5677bcf5d820e0b4aa54504b2f86e4 (patch)
treecdbae8c0a6dcf0f30273d1780b100d85fdb28947 /WireGuard/WireGuard/UI/macOS/ViewController
parentmacOS: Tunnel detail: Make the Activate button part of the list view (diff)
downloadwireguard-apple-9795b0609a5677bcf5d820e0b4aa54504b2f86e4.tar.xz
wireguard-apple-9795b0609a5677bcf5d820e0b4aa54504b2f86e4.zip
macOS: Localize tooltips
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/ViewController')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index 9d775425..ec8850a6 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -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()
}