From 174a6e8e326c831d497a74934577ab5ad38f9397 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sat, 11 Apr 2020 16:56:54 +0530 Subject: [PATCH] Localization: macOS: Fix localization for 'Edit' button Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/Base.lproj/Localizable.strings | 2 ++ .../macOS/ViewController/TunnelDetailTableViewController.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings index 892e097..1cc9693 100644 --- a/WireGuard/WireGuard/Base.lproj/Localizable.strings +++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings @@ -349,6 +349,8 @@ "macButtonDeleteTunnels (%d)" = "Delete %d tunnels"; +"macButtonEdit" = "Edit"; + // Mac detail/edit view fields "macFieldKey (%@)" = "%@:"; diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift index eafa88f..5ce3dc7 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift @@ -60,7 +60,7 @@ class TunnelDetailTableViewController: NSViewController { let editButton: NSButton = { let button = NSButton() - button.title = tr("Edit") + button.title = tr("macButtonEdit") button.setButtonType(.momentaryPushIn) button.bezelStyle = .rounded button.toolTip = tr("macToolTipEditTunnel")