aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-09 02:33:22 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:35 +0530
commitc9ee549a2e79cde3360ce6f37c6801b728d38df5 (patch)
treecd602e9e291dcee2b7eff81d908157deea154759 /WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
parentmacOS: Import sheet button should say 'Import' (diff)
downloadwireguard-apple-c9ee549a2e79cde3360ce6f37c6801b728d38df5.tar.xz
wireguard-apple-c9ee549a2e79cde3360ce6f37c6801b728d38df5.zip
macOS: Localize export sheets
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
index 162cf154..709ec8ec 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
@@ -165,8 +165,8 @@ class TunnelsListTableViewController: NSViewController {
@objc func exportLogClicked() {
guard let window = view.window else { return }
let savePanel = NSSavePanel()
- savePanel.prompt = "Save"
- savePanel.nameFieldLabel = "Export log to"
+ savePanel.prompt = tr("macSheetButtonExportLog")
+ savePanel.nameFieldLabel = tr("macNameFieldExportLog")
let dateFormatter = ISO8601DateFormatter()
dateFormatter.formatOptions = [.withFullDate, .withTime, .withTimeZone] // Avoid ':' in the filename
@@ -199,8 +199,8 @@ class TunnelsListTableViewController: NSViewController {
guard let window = view.window else { return }
let savePanel = NSSavePanel()
savePanel.allowedFileTypes = ["zip"]
- savePanel.prompt = "Save"
- savePanel.nameFieldLabel = "Export tunnels to"
+ savePanel.prompt = tr("macSheetButtonExportZip")
+ savePanel.nameFieldLabel = tr("macNameFieldExportZip")
savePanel.nameFieldStringValue = "wireguard-export.zip"
savePanel.beginSheetModal(for: window) { [weak tunnelsManager] response in
guard let tunnelsManager = tunnelsManager else { return }