From cf569fd0d2e9e328e6e960846debc81d17004521 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 1 Nov 2018 21:22:12 +0100 Subject: [PATCH] Global: OK over Ok Signed-off-by: Jason A. Donenfeld --- WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift | 4 ++-- WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift | 2 +- .../WireGuard/UI/iOS/TunnelDetailTableViewController.swift | 2 +- .../WireGuard/UI/iOS/TunnelEditTableViewController.swift | 2 +- .../WireGuard/UI/iOS/TunnelsListTableViewController.swift | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift b/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift index b9db8e9..676e918 100644 --- a/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift +++ b/WireGuard/WireGuard/UI/iOS/ErrorPresenter.swift @@ -52,7 +52,7 @@ class ErrorPresenter { static func showErrorAlert(error: Error, from sourceVC: UIViewController?, onDismissal: (() -> Void)? = nil) { guard let sourceVC = sourceVC else { return } guard let (title, message) = ErrorPresenter.errorMessage(for: error) else { return } - let okAction = UIAlertAction(title: "Ok", style: .default) { (_) in + let okAction = UIAlertAction(title: "OK", style: .default) { (_) in onDismissal?() } let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) @@ -63,7 +63,7 @@ class ErrorPresenter { static func showErrorAlert(title: String, message: String, from sourceVC: UIViewController?, onDismissal: (() -> Void)? = nil) { guard let sourceVC = sourceVC else { return } - let okAction = UIAlertAction(title: "Ok", style: .default) { (_) in + let okAction = UIAlertAction(title: "OK", style: .default) { (_) in onDismissal?() } let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) diff --git a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift index fa5f6d0..010cb86 100644 --- a/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/SettingsTableViewController.swift @@ -89,7 +89,7 @@ class SettingsTableViewController: UITableViewController { } func showErrorAlert(title: String, message: String) { - let okAction = UIAlertAction(title: "Ok", style: .default) + let okAction = UIAlertAction(title: "OK", style: .default) let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) alert.addAction(okAction) diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift index 4094743..2921ca5 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift @@ -53,7 +53,7 @@ class TunnelDetailTableViewController: UITableViewController { } func showErrorAlert(title: String, message: String) { - let okAction = UIAlertAction(title: "Ok", style: .default) + let okAction = UIAlertAction(title: "OK", style: .default) let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) alert.addAction(okAction) diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift index 7a3c935..7702b11 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift @@ -106,7 +106,7 @@ class TunnelEditTableViewController: UITableViewController { } func showErrorAlert(title: String, message: String) { - let okAction = UIAlertAction(title: "Ok", style: .default) + let okAction = UIAlertAction(title: "OK", style: .default) let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) alert.addAction(okAction) diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift index 67ed4f5..5804973 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift @@ -119,7 +119,7 @@ class TunnelsListTableViewController: UITableViewController { } func showErrorAlert(title: String, message: String) { - let okAction = UIAlertAction(title: "Ok", style: .default) + let okAction = UIAlertAction(title: "OK", style: .default) let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) alert.addAction(okAction) -- 2.47.3