Simplify preferences title

This commit is contained in:
Davide De Rosa 2021-01-26 21:41:51 +01:00
parent af937eaedc
commit 33e6b110ae
5 changed files with 7 additions and 9 deletions

View File

@ -136,15 +136,13 @@ internal enum L10n {
} }
} }
internal enum Preferences { internal enum Preferences {
/// %@ Preferences /// Preferences
internal static func title(_ p1: Any) -> String { internal static let title = L10n.tr("App", "preferences.title")
return L10n.tr("App", "preferences.title", String(describing: p1))
}
internal enum Cells { internal enum Cells {
internal enum ConfirmQuit { internal enum ConfirmQuit {
/// Confirm quit /// Confirm quit
internal static let caption = L10n.tr("App", "preferences.cells.confirm_quit.caption") internal static let caption = L10n.tr("App", "preferences.cells.confirm_quit.caption")
/// Check to skip quit confirmation alert. /// Check to present a quit confirmation alert.
internal static let footer = L10n.tr("App", "preferences.cells.confirm_quit.footer") internal static let footer = L10n.tr("App", "preferences.cells.confirm_quit.footer")
} }
internal enum LaunchesOnLogin { internal enum LaunchesOnLogin {

View File

@ -45,7 +45,7 @@ class WindowManager: NSObject {
// preferences = presentWindowController( // preferences = presentWindowController(
// StoryboardScene.Preferences.initialScene.instantiate(), // StoryboardScene.Preferences.initialScene.instantiate(),
// existing: preferences, // existing: preferences,
// title: L10n.App.Preferences.title(GroupConstants.App.name) // title: L10n.App.Preferences.title
// ) // )
// return preferences // return preferences
// } // }

View File

@ -32,7 +32,7 @@ class PreferencesViewController: NSViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
title = L10n.App.Preferences.title(GroupConstants.App.name) title = L10n.App.Preferences.title
let labels = [ let labels = [
L10n.App.Preferences.Sections.General.header, L10n.App.Preferences.Sections.General.header,
L10n.Core.Service.Sections.Diagnostics.header L10n.Core.Service.Sections.Diagnostics.header

View File

@ -50,7 +50,7 @@
"network_settings.dns.cells.domains.title" = "Domains"; "network_settings.dns.cells.domains.title" = "Domains";
"network_settings.proxy.cells.bypass_domains.title" = "Bypass domains"; "network_settings.proxy.cells.bypass_domains.title" = "Bypass domains";
"preferences.title" = "%@ Preferences"; "preferences.title" = "Preferences";
"preferences.sections.general.header" = "General"; "preferences.sections.general.header" = "General";
"preferences.cells.launches_on_login.caption" = "Launch on login"; "preferences.cells.launches_on_login.caption" = "Launch on login";
"preferences.cells.launches_on_login.footer" = "Check to automatically launch the app on boot or login."; "preferences.cells.launches_on_login.footer" = "Check to automatically launch the app on boot or login.";

View File

@ -50,7 +50,7 @@
"network_settings.dns.cells.addresses.title" = "Server"; "network_settings.dns.cells.addresses.title" = "Server";
"network_settings.proxy.cells.bypass_domains.title" = "Dominii ignorati"; "network_settings.proxy.cells.bypass_domains.title" = "Dominii ignorati";
"preferences.title" = "Preferenze %@"; "preferences.title" = "Preferenze";
"preferences.sections.general.header" = "Generale"; "preferences.sections.general.header" = "Generale";
"preferences.cells.launches_on_login.caption" = "Apri al login"; "preferences.cells.launches_on_login.caption" = "Apri al login";
"preferences.cells.launches_on_login.footer" = "Seleziona per aprire automaticamente l'app all'avvio o al login."; "preferences.cells.launches_on_login.footer" = "Seleziona per aprire automaticamente l'app all'avvio o al login.";