From: Roopesh Chander Date: Tue, 8 Jan 2019 20:57:59 +0000 (+0530) Subject: macOS: Import sheet button should say 'Import' X-Git-Tag: 0.0.20190207-1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5059ce55b0b29eb6a654f514eda5abf5e55e9d4;p=thirdparty%2Fwireguard-apple.git macOS: Import sheet button should say 'Import' Signed-off-by: Roopesh Chander --- 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 }