diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift
index 69f46f647..8a27b2295 100644
--- a/Mac/AppDelegate.swift
+++ b/Mac/AppDelegate.swift
@@ -83,7 +83,7 @@ let appName = "NetNewsWire"
}
private var mainWindowControllers = [MainWindowController]()
- private lazy var preferencesWindowController = windowControllerWithName("Preferences")
+ private lazy var preferencesWindowController = PreferencesWindowController()
private var aboutWindowController: AboutWindowController?
private var addFeedController: AddFeedController?
private var addFolderWindowController: AddFolderWindowController?
@@ -441,11 +441,6 @@ let appName = "NetNewsWire"
return controller
}
- func windowControllerWithName(_ storyboardName: String) -> NSWindowController {
- let storyboard = NSStoryboard(name: NSStoryboard.Name(storyboardName), bundle: nil)
- return storyboard.instantiateInitialController()! as! NSWindowController
- }
-
@discardableResult
func createAndShowMainWindow() -> MainWindowController {
let controller = createMainWindowController()
diff --git a/Mac/Base.lproj/Preferences.storyboard b/Mac/Base.lproj/Preferences.storyboard
deleted file mode 100644
index 2248e8dd9..000000000
--- a/Mac/Base.lproj/Preferences.storyboard
+++ /dev/null
@@ -1,734 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Mac/Preferences/Accounts/AccountsPreferencesViewController.swift b/Mac/Preferences/Accounts/AccountsPreferencesViewController.swift
index 49821b188..cde05dbfa 100644
--- a/Mac/Preferences/Accounts/AccountsPreferencesViewController.swift
+++ b/Mac/Preferences/Accounts/AccountsPreferencesViewController.swift
@@ -32,6 +32,10 @@ final class AccountsPreferencesViewController: NSViewController {
account(at: tableView.selectedRow)
}
+ convenience init() {
+ self.init(nibName: "AccountsPreferencesView", bundle: nil)
+ }
+
override func viewDidLoad() {
super.viewDidLoad()
diff --git a/Mac/Preferences/Accounts/Base.lproj/AccountsPreferencesView.xib b/Mac/Preferences/Accounts/Base.lproj/AccountsPreferencesView.xib
new file mode 100644
index 000000000..759ae6c98
--- /dev/null
+++ b/Mac/Preferences/Accounts/Base.lproj/AccountsPreferencesView.xib
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Mac/Preferences/Advanced/AdvancedPreferencesViewController.swift b/Mac/Preferences/Advanced/AdvancedPreferencesViewController.swift
index 45e2b1a6a..25e6a2054 100644
--- a/Mac/Preferences/Advanced/AdvancedPreferencesViewController.swift
+++ b/Mac/Preferences/Advanced/AdvancedPreferencesViewController.swift
@@ -27,6 +27,10 @@ final class AdvancedPreferencesViewController: NSViewController {
}
}
+ convenience init() {
+ self.init(nibName: "AdvancedPreferencesView", bundle: nil)
+ }
+
override func viewWillAppear() {
super.viewWillAppear()
updateUI()
diff --git a/Mac/Preferences/Advanced/Base.lproj/AdvancedPreferencesView.xib b/Mac/Preferences/Advanced/Base.lproj/AdvancedPreferencesView.xib
new file mode 100644
index 000000000..25d4d8ac0
--- /dev/null
+++ b/Mac/Preferences/Advanced/Base.lproj/AdvancedPreferencesView.xib
@@ -0,0 +1,174 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Mac/Preferences/Advanced/mul.lproj/AdvancedPreferencesView.xcstrings b/Mac/Preferences/Advanced/mul.lproj/AdvancedPreferencesView.xcstrings
new file mode 100644
index 000000000..9e6c036cb
--- /dev/null
+++ b/Mac/Preferences/Advanced/mul.lproj/AdvancedPreferencesView.xcstrings
@@ -0,0 +1,186 @@
+{
+ "sourceLanguage" : "en",
+ "strings" : {
+ "6bb-c0-guo.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Download:\"; ObjectID = \"6bb-c0-guo\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Download:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Descargar:"
+ }
+ }
+ }
+ },
+ "AaA-Rr-UYD.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Check for Updates\"; ObjectID = \"AaA-Rr-UYD\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Check for Updates"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Buscar actualizaciones"
+ }
+ }
+ }
+ },
+ "dm8-Xy-0Ba.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Check automatically\"; ObjectID = \"dm8-Xy-0Ba\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Check automatically"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Comprobar automáticamente"
+ }
+ }
+ }
+ },
+ "F8M-rS-und.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Release builds\"; ObjectID = \"F8M-rS-und\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Release builds"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Versiones finales"
+ }
+ }
+ }
+ },
+ "fOZ-zv-QTc.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"If you’re not sure, choose Release builds. Test builds may have bugs, which may include crashing bugs and data loss.\"; ObjectID = \"fOZ-zv-QTc\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "If you’re not sure, choose Release builds. Test builds may have bugs, which may include crashing bugs and data loss."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Si no estás seguro, elige Versiones finales. Las versiones de prueba pueden tener errores, incluidos fallos y pérdida de datos."
+ }
+ }
+ }
+ },
+ "Fuf-rU-D6M.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Test builds\"; ObjectID = \"Fuf-rU-D6M\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Test builds"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Versiones de prueba"
+ }
+ }
+ }
+ },
+ "jnc-C5-4oI.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Send automatically\"; ObjectID = \"jnc-C5-4oI\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Send automatically"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Enviar automáticamente"
+ }
+ }
+ }
+ },
+ "kSv-Wu-NYx.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Privacy Policy\"; ObjectID = \"kSv-Wu-NYx\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Privacy Policy"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Política de privacidad"
+ }
+ }
+ }
+ },
+ "qcq-fU-Ks0.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Crash logs:\"; ObjectID = \"qcq-fU-Ks0\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Crash logs:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Registros de fallos:"
+ }
+ }
+ }
+ },
+ "zqG-X2-E9b.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"App Updates:\"; ObjectID = \"zqG-X2-E9b\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "App Updates:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Actualizaciones de la app:"
+ }
+ }
+ }
+ }
+ },
+ "version" : "1.2"
+}
diff --git a/Mac/Preferences/Base.lproj/PreferencesWindow.xib b/Mac/Preferences/Base.lproj/PreferencesWindow.xib
new file mode 100644
index 000000000..43f9d2f5b
--- /dev/null
+++ b/Mac/Preferences/Base.lproj/PreferencesWindow.xib
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Mac/Preferences/General/Base.lproj/GeneralPreferencesView.xib b/Mac/Preferences/General/Base.lproj/GeneralPreferencesView.xib
new file mode 100644
index 000000000..0b5280046
--- /dev/null
+++ b/Mac/Preferences/General/Base.lproj/GeneralPreferencesView.xib
@@ -0,0 +1,337 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Mac/Preferences/General/GeneralPrefencesViewController.swift b/Mac/Preferences/General/GeneralPrefencesViewController.swift
index d86805515..9e1ac9a27 100644
--- a/Mac/Preferences/General/GeneralPrefencesViewController.swift
+++ b/Mac/Preferences/General/GeneralPrefencesViewController.swift
@@ -18,6 +18,10 @@ final class GeneralPreferencesViewController: NSViewController {
@IBOutlet var articleThemePopup: NSPopUpButton!
@IBOutlet var defaultBrowserPopup: NSPopUpButton!
+ convenience init() {
+ self.init(nibName: "GeneralPreferencesView", bundle: nil)
+ }
+
public override init(nibName nibNameOrNil: NSNib.Name?, bundle nibBundleOrNil: Bundle?) {
super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)
commonInit()
diff --git a/Mac/Preferences/General/mul.lproj/GeneralPreferencesView.xcstrings b/Mac/Preferences/General/mul.lproj/GeneralPreferencesView.xcstrings
new file mode 100644
index 000000000..dc5bd8d48
--- /dev/null
+++ b/Mac/Preferences/General/mul.lproj/GeneralPreferencesView.xcstrings
@@ -0,0 +1,498 @@
+{
+ "sourceLanguage" : "en",
+ "strings" : {
+ "4Pi-2Y-XmV.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Extra Extra Large\"; ObjectID = \"4Pi-2Y-XmV\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Extra Extra Large"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Extra extra grande"
+ }
+ }
+ }
+ },
+ "6pw-Vq-tjM.title" : {
+ "comment" : "Class = \"NSPopUpButtonCell\"; title = \"Medium\"; ObjectID = \"6pw-Vq-tjM\";",
+ "extractionState" : "stale",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Medium"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mediano"
+ }
+ }
+ }
+ },
+ "7e2-TV-hth.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Every 4 hours\"; ObjectID = \"7e2-TV-hth\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Every 4 hours"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cada 4 horas"
+ }
+ }
+ }
+ },
+ "7gV-gL-Nue.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Every 8 hours\"; ObjectID = \"7gV-gL-Nue\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Every 8 hours"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cada 8 horas"
+ }
+ }
+ }
+ },
+ "BJB-pP-mhQ.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Article Content:\"; ObjectID = \"BJB-pP-mhQ\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Article Content:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Contenido del artículo:"
+ }
+ }
+ }
+ },
+ "CgU-dE-Qtb.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Browser:\"; ObjectID = \"CgU-dE-Qtb\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Browser:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Navegador:"
+ }
+ }
+ }
+ },
+ "ckZ-0Q-rNz.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Large\"; ObjectID = \"ckZ-0Q-rNz\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Large"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Grande"
+ }
+ }
+ }
+ },
+ "doa-Wq-4Uq.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Manually only\"; ObjectID = \"doa-Wq-4Uq\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Manually only"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Solo manualmente"
+ }
+ }
+ }
+ },
+ "EMq-9M-zTJ.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Press the Shift key to do the opposite.\"; ObjectID = \"EMq-9M-zTJ\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Press the Shift key to do the opposite."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pulsa la tecla Mayúsculas para hacer lo contrario."
+ }
+ }
+ }
+ },
+ "Eth-o0-pWM.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Safari Extension:\"; ObjectID = \"Eth-o0-pWM\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Safari Extension:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Extensión de Safari:"
+ }
+ }
+ }
+ },
+ "F7c-lm-g97.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Refresh Feeds:\"; ObjectID = \"F7c-lm-g97\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Refresh Feeds:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Actualizar fuentes:"
+ }
+ }
+ }
+ },
+ "g2Q-oq-h2P.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Some content, such as videos and embedded social media posts, may require JavaScript to work correctly.\"; ObjectID = \"g2Q-oq-h2P\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Some content, such as videos and embedded social media posts, may require JavaScript to work correctly."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Parte del contenido, como vídeos y publicaciones de redes sociales incrustadas, puede requerir JavaScript para funcionar correctamente."
+ }
+ }
+ }
+ },
+ "GUo-0M-xMc.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Enable JavaScript\"; ObjectID = \"GUo-0M-xMc\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Enable JavaScript"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Activar JavaScript"
+ }
+ }
+ }
+ },
+ "jMV-2o-5Oh.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Medium\"; ObjectID = \"jMV-2o-5Oh\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Medium"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mediano"
+ }
+ }
+ }
+ },
+ "Jwn-HD-eP6.title" : {
+ "comment" : "Class = \"NSPopUpButtonCell\"; title = \"Manually only\"; ObjectID = \"Jwn-HD-eP6\";",
+ "extractionState" : "stale",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Manually only"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Solo manualmente"
+ }
+ }
+ }
+ },
+ "MQe-Za-N8J.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Article Theme:\"; ObjectID = \"MQe-Za-N8J\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Article Theme:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tema del artículo:"
+ }
+ }
+ }
+ },
+ "o1h-xo-elW.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Every 2 hours\"; ObjectID = \"o1h-xo-elW\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Every 2 hours"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cada 2 horas"
+ }
+ }
+ }
+ },
+ "ObP-qK-qDJ.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Safari\"; ObjectID = \"ObP-qK-qDJ\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Safari"
+ }
+ }
+ }
+ },
+ "Pkl-EA-Goa.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Default\"; ObjectID = \"Pkl-EA-Goa\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Default"
+ }
+ }
+ }
+ },
+ "Qjt-qr-WER.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Every hour\"; ObjectID = \"Qjt-qr-WER\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Every hour"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cada hora"
+ }
+ }
+ }
+ },
+ "qMe-6g-Vme.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Extra Large\"; ObjectID = \"qMe-6g-Vme\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Extra Large"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Extra grande"
+ }
+ }
+ }
+ },
+ "roB-Mu-Ht7.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Small\"; ObjectID = \"roB-Mu-Ht7\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Small"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pequeño"
+ }
+ }
+ }
+ },
+ "rZU-Tg-xwo.title" : {
+ "comment" : "Class = \"NSMenuItem\"; title = \"Every 30 minutes\"; ObjectID = \"rZU-Tg-xwo\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Every 30 minutes"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Cada 30 minutos"
+ }
+ }
+ }
+ },
+ "SkZ-tE-blK.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Open feeds in default news reader\"; ObjectID = \"SkZ-tE-blK\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Open feeds in default news reader"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Abrir fuentes en el lector de noticias predeterminado"
+ }
+ }
+ }
+ },
+ "t0a-LN-rCv.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Open web pages in background in browser\"; ObjectID = \"t0a-LN-rCv\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Open web pages in background in browser"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Abrir páginas web en segundo plano en el navegador"
+ }
+ }
+ }
+ },
+ "uvx-O8-HvU.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Open feeds in NetNewsWire\"; ObjectID = \"uvx-O8-HvU\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Open feeds in NetNewsWire"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Abrir fuentes en NetNewsWire"
+ }
+ }
+ }
+ },
+ "xQu-QV-91i.title" : {
+ "comment" : "Class = \"NSTextFieldCell\"; title = \"Article Text Size:\"; ObjectID = \"xQu-QV-91i\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Article Text Size:"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Tamaño del texto del artículo:"
+ }
+ }
+ }
+ },
+ "ySX-5i-SP1.title" : {
+ "comment" : "Class = \"NSButtonCell\"; title = \"Open Themes Folder\"; ObjectID = \"ySX-5i-SP1\";",
+ "extractionState" : "extracted_with_value",
+ "localizations" : {
+ "en" : {
+ "stringUnit" : {
+ "state" : "new",
+ "value" : "Open Themes Folder"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Abrir carpeta de temas"
+ }
+ }
+ }
+ }
+ },
+ "version" : "1.2"
+}
\ No newline at end of file
diff --git a/Mac/Preferences/PreferencesWindowController.swift b/Mac/Preferences/PreferencesWindowController.swift
index 5dcb8f361..a79ee472f 100644
--- a/Mac/Preferences/PreferencesWindowController.swift
+++ b/Mac/Preferences/PreferencesWindowController.swift
@@ -45,6 +45,10 @@ final class PreferencesWindowController: NSWindowController, NSToolbarDelegate {
return specs
}()
+ convenience init() {
+ self.init(windowNibName: "PreferencesWindow")
+ }
+
override func windowDidLoad() {
let toolbar = NSToolbar(identifier: NSToolbar.Identifier("PreferencesToolbar"))
toolbar.delegate = self
@@ -152,8 +156,15 @@ private extension PreferencesWindowController {
return cachedViewController
}
- let storyboard = NSStoryboard(name: NSStoryboard.Name("Preferences"), bundle: nil)
- guard let viewController = storyboard.instantiateController(withIdentifier: NSStoryboard.SceneIdentifier(identifier)) as? NSViewController else {
+ let viewController: NSViewController
+ switch identifier {
+ case ToolbarItemIdentifier.General:
+ viewController = GeneralPreferencesViewController()
+ case ToolbarItemIdentifier.Accounts:
+ viewController = AccountsPreferencesViewController()
+ case ToolbarItemIdentifier.Advanced:
+ viewController = AdvancedPreferencesViewController()
+ default:
assertionFailure("Unknown preferences view controller: \(identifier)")
return nil
}