From 362e6e607ff87eb92c85492bd182cb570f3e0766 Mon Sep 17 00:00:00 2001 From: Robbie Trencheny Date: Sun, 19 Nov 2017 16:40:46 -0800 Subject: [PATCH] Use translated string & remove swiftlint warnings --- HomeAssistant/Views/SettingsDetailViewController.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HomeAssistant/Views/SettingsDetailViewController.swift b/HomeAssistant/Views/SettingsDetailViewController.swift index ac2daebd9..a70e80eff 100644 --- a/HomeAssistant/Views/SettingsDetailViewController.swift +++ b/HomeAssistant/Views/SettingsDetailViewController.swift @@ -172,7 +172,7 @@ class SettingsDetailViewController: FormViewController { } case "notifications": - self.title = "Notification Settings" + self.title = L10n.SettingsDetails.Notifications.title self.form +++ Section() <<< SwitchRow("confirmBeforeOpeningUrl") { @@ -204,10 +204,10 @@ class SettingsDetailViewController: FormViewController { $0.title = L10n.SettingsDetails.Notifications.UpdateSection.Button.title }.onCellSelection {_, _ in HomeAssistantAPI.sharedInstance.setupPush() - // swiftlint:disable:next line_length - let alert = UIAlertController(title: L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.title, - // swiftlint:disable:next line_length - message: L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.message, + let title = L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.title + let message = L10n.SettingsDetails.Notifications.UpdateSection.UpdatedAlert.message + let alert = UIAlertController(title: title, + message: message, preferredStyle: UIAlertControllerStyle.alert) alert.addAction(UIAlertAction(title: L10n.okLabel, style: UIAlertActionStyle.default, handler: nil))