From c0be33dacc9d17a2c3e58bbe159714ea9373d48f Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 19 Mar 2019 17:31:07 +0100 Subject: [PATCH] Add descriptive footer to Siri section --- Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift | 1 + Passepartout/Resources/en.lproj/Localizable.strings | 1 + Passepartout/Sources/SwiftGen+Strings.swift | 2 ++ 3 files changed, 4 insertions(+) diff --git a/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift b/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift index eaed87c0..32d32eca 100644 --- a/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift +++ b/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift @@ -56,6 +56,7 @@ class OrganizerViewController: UITableViewController, TableModelHost { model.setFooter(L10n.Organizer.Sections.Hosts.footer, for: .hosts) if #available(iOS 12, *) { model.setHeader(L10n.Organizer.Sections.Siri.header, for: .siri) + model.setFooter(L10n.Organizer.Sections.Siri.footer, for: .siri) model.set([.siriShortcuts], in: .siri) } model.set([.openAbout], in: .about) diff --git a/Passepartout/Resources/en.lproj/Localizable.strings b/Passepartout/Resources/en.lproj/Localizable.strings index c6b25067..7ded4cb6 100644 --- a/Passepartout/Resources/en.lproj/Localizable.strings +++ b/Passepartout/Resources/en.lproj/Localizable.strings @@ -40,6 +40,7 @@ "organizer.sections.hosts.header" = "Hosts"; "organizer.sections.hosts.footer" = "Import hosts from raw .ovpn configuration files."; "organizer.sections.siri.header" = "Siri"; +"organizer.sections.siri.footer" = "Get help from Siri to speed up your most common interactions with the app."; "organizer.cells.profile.value.current" = "In use"; "organizer.cells.add_provider.caption" = "Add new network"; "organizer.cells.add_host.caption" = "Add new host"; diff --git a/Passepartout/Sources/SwiftGen+Strings.swift b/Passepartout/Sources/SwiftGen+Strings.swift index 575fa86d..5a1ccd64 100644 --- a/Passepartout/Sources/SwiftGen+Strings.swift +++ b/Passepartout/Sources/SwiftGen+Strings.swift @@ -383,6 +383,8 @@ public enum L10n { public static let header = L10n.tr("Localizable", "organizer.sections.providers.header") } public enum Siri { + /// Get help from Siri to speed up your most common interactions with the app. + public static let footer = L10n.tr("Localizable", "organizer.sections.siri.footer") /// Siri public static let header = L10n.tr("Localizable", "organizer.sections.siri.header") }