aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-09 02:27:59 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:35 +0530
commitf5059ce55b0b29eb6a654f514eda5abf5e55e9d4 (patch)
tree8f345e6b02ffe46554214fd93977462e585e4992 /WireGuard
parentmacOS: Tunnel detail: Ensure long keys fit (diff)
downloadwireguard-apple-f5059ce55b0b29eb6a654f514eda5abf5e55e9d4.tar.xz
wireguard-apple-f5059ce55b0b29eb6a654f514eda5abf5e55e9d4.zip
macOS: Import sheet button should say 'Import'
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r--WireGuard/WireGuard/Base.lproj/Localizable.strings1
-rw-r--r--WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift1
2 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/Base.lproj/Localizable.strings b/WireGuard/WireGuard/Base.lproj/Localizable.strings
index 3cfe1fc..09c669e 100644
--- a/WireGuard/WireGuard/Base.lproj/Localizable.strings
+++ b/WireGuard/WireGuard/Base.lproj/Localizable.strings
@@ -243,6 +243,7 @@
"macDeleteTunnelConfirmationAlertButtonTitleCancel" = "Cancel";
"macButtonImportTunnels" = "Import tunnel(s) from file";
+"macSheetButtonImport" = "Import";
// Mac detail/edit view fields
diff --git a/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift b/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift
index b1ed2f5..03b1be7 100644
--- a/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift
+++ b/WireGuard/WireGuard/UI/macOS/ImportPanelPresenter.swift
@@ -7,6 +7,7 @@ class ImportPanelPresenter {
static func presentImportPanel(tunnelsManager: TunnelsManager, sourceVC: NSViewController) {
guard let window = sourceVC.view.window else { return }
let openPanel = NSOpenPanel()
+ openPanel.prompt = tr("macSheetButtonImport")
openPanel.allowedFileTypes = ["conf", "zip"]
openPanel.beginSheetModal(for: window) { [weak tunnelsManager] response in
guard let tunnelsManager = tunnelsManager else { return }