Localises footers
This commit is contained in:
parent
d5a7020239
commit
020cd0eb3c
@ -197,6 +197,7 @@ Don't have a Feed Wrangler account?</string>
|
|||||||
<outlet property="activityIndicator" destination="mVm-hL-hqw" id="8Og-kO-70M"/>
|
<outlet property="activityIndicator" destination="mVm-hL-hqw" id="8Og-kO-70M"/>
|
||||||
<outlet property="cancelBarButtonItem" destination="zbP-iL-kfC" id="TT3-iu-IvG"/>
|
<outlet property="cancelBarButtonItem" destination="zbP-iL-kfC" id="TT3-iu-IvG"/>
|
||||||
<outlet property="emailTextField" destination="o06-fe-i3S" id="WHW-3E-trH"/>
|
<outlet property="emailTextField" destination="o06-fe-i3S" id="WHW-3E-trH"/>
|
||||||
|
<outlet property="footerLabel" destination="6Ik-WC-e74" id="KwB-tD-kTN"/>
|
||||||
<outlet property="passwordTextField" destination="Z6i-nX-CwJ" id="p36-53-RsD"/>
|
<outlet property="passwordTextField" destination="Z6i-nX-CwJ" id="p36-53-RsD"/>
|
||||||
<outlet property="showHideButton" destination="lBg-Pn-8ao" id="GgE-Nx-gFL"/>
|
<outlet property="showHideButton" destination="lBg-Pn-8ao" id="GgE-Nx-gFL"/>
|
||||||
</connections>
|
</connections>
|
||||||
@ -317,6 +318,7 @@ Don't have a Feed Wrangler account?</string>
|
|||||||
</barButtonItem>
|
</barButtonItem>
|
||||||
</navigationItem>
|
</navigationItem>
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="footerLabel" destination="5ce-ZL-glQ" id="V50-Yc-hD6"/>
|
||||||
<outlet property="nameTextField" destination="Yl1-R6-xZi" id="jcl-vI-Rde"/>
|
<outlet property="nameTextField" destination="Yl1-R6-xZi" id="jcl-vI-Rde"/>
|
||||||
</connections>
|
</connections>
|
||||||
</tableViewController>
|
</tableViewController>
|
||||||
@ -480,6 +482,7 @@ Don't have a Feedbin account?</string>
|
|||||||
<outlet property="activityIndicator" destination="YvV-hB-lzT" id="n1F-tV-5ZV"/>
|
<outlet property="activityIndicator" destination="YvV-hB-lzT" id="n1F-tV-5ZV"/>
|
||||||
<outlet property="cancelBarButtonItem" destination="pfF-Of-5NT" id="Zr3-qD-1Yi"/>
|
<outlet property="cancelBarButtonItem" destination="pfF-Of-5NT" id="Zr3-qD-1Yi"/>
|
||||||
<outlet property="emailTextField" destination="vJa-NN-yjR" id="nCF-9W-YsF"/>
|
<outlet property="emailTextField" destination="vJa-NN-yjR" id="nCF-9W-YsF"/>
|
||||||
|
<outlet property="footerLabel" destination="sgL-0C-JZa" id="b6I-Mk-2K3"/>
|
||||||
<outlet property="passwordTextField" destination="YC2-RH-QoV" id="qaX-0i-7jq"/>
|
<outlet property="passwordTextField" destination="YC2-RH-QoV" id="qaX-0i-7jq"/>
|
||||||
<outlet property="showHideButton" destination="TfW-wf-V06" id="PbL-67-Nrg"/>
|
<outlet property="showHideButton" destination="TfW-wf-V06" id="PbL-67-Nrg"/>
|
||||||
</connections>
|
</connections>
|
||||||
@ -659,6 +662,7 @@ Don't have a NewsBlur account?</string>
|
|||||||
<outlet property="actionButton" destination="E1I-C4-JdL" id="q2T-4o-c8i"/>
|
<outlet property="actionButton" destination="E1I-C4-JdL" id="q2T-4o-c8i"/>
|
||||||
<outlet property="activityIndicator" destination="HfW-jV-MjK" id="AIV-uG-9uC"/>
|
<outlet property="activityIndicator" destination="HfW-jV-MjK" id="AIV-uG-9uC"/>
|
||||||
<outlet property="cancelBarButtonItem" destination="bl6-Y1-wQ8" id="ohR-gW-5J2"/>
|
<outlet property="cancelBarButtonItem" destination="bl6-Y1-wQ8" id="ohR-gW-5J2"/>
|
||||||
|
<outlet property="footerLabel" destination="fal-e8-3BB" id="7Fq-Oz-aEx"/>
|
||||||
<outlet property="passwordTextField" destination="fct-XR-fEa" id="fGL-4k-gZ6"/>
|
<outlet property="passwordTextField" destination="fct-XR-fEa" id="fGL-4k-gZ6"/>
|
||||||
<outlet property="showHideButton" destination="GY9-nr-jFb" id="1p9-9F-GMY"/>
|
<outlet property="showHideButton" destination="GY9-nr-jFb" id="1p9-9F-GMY"/>
|
||||||
<outlet property="usernameTextField" destination="S4v-fs-DIO" id="B7I-yz-M0T"/>
|
<outlet property="usernameTextField" destination="S4v-fs-DIO" id="B7I-yz-M0T"/>
|
||||||
@ -938,6 +942,9 @@ Don't have a Reader account?</string>
|
|||||||
</connections>
|
</connections>
|
||||||
</barButtonItem>
|
</barButtonItem>
|
||||||
</navigationItem>
|
</navigationItem>
|
||||||
|
<connections>
|
||||||
|
<outlet property="footerLabel" destination="aFS-Y0-2MH" id="gDw-R1-HSK"/>
|
||||||
|
</connections>
|
||||||
</tableViewController>
|
</tableViewController>
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="weY-OS-9NV" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
<placeholder placeholderIdentifier="IBFirstResponder" id="weY-OS-9NV" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||||
</objects>
|
</objects>
|
||||||
|
@ -12,13 +12,19 @@ import Account
|
|||||||
class CloudKitAccountViewController: UITableViewController {
|
class CloudKitAccountViewController: UITableViewController {
|
||||||
|
|
||||||
weak var delegate: AddAccountDismissDelegate?
|
weak var delegate: AddAccountDismissDelegate?
|
||||||
|
@IBOutlet weak var footerLabel: UILabel!
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
setupFooter()
|
||||||
|
|
||||||
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func setupFooter() {
|
||||||
|
footerLabel.text = NSLocalizedString("Use your iCloud account to sync your subscriptions across your iOS and macOS devices.", comment: "iCloud")
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func cancel(_ sender: Any) {
|
@IBAction func cancel(_ sender: Any) {
|
||||||
dismiss(animated: true, completion: nil)
|
dismiss(animated: true, completion: nil)
|
||||||
delegate?.dismiss()
|
delegate?.dismiss()
|
||||||
|
@ -20,12 +20,14 @@ class FeedWranglerAccountViewController: UITableViewController {
|
|||||||
@IBOutlet weak var passwordTextField: UITextField!
|
@IBOutlet weak var passwordTextField: UITextField!
|
||||||
@IBOutlet weak var showHideButton: UIButton!
|
@IBOutlet weak var showHideButton: UIButton!
|
||||||
@IBOutlet weak var actionButton: UIButton!
|
@IBOutlet weak var actionButton: UIButton!
|
||||||
|
@IBOutlet weak var footerLabel: UILabel!
|
||||||
|
|
||||||
weak var account: Account?
|
weak var account: Account?
|
||||||
weak var delegate: AddAccountDismissDelegate?
|
weak var delegate: AddAccountDismissDelegate?
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
setupFooter()
|
||||||
|
|
||||||
activityIndicator.isHidden = true
|
activityIndicator.isHidden = true
|
||||||
emailTextField.delegate = self
|
emailTextField.delegate = self
|
||||||
@ -45,6 +47,10 @@ class FeedWranglerAccountViewController: UITableViewController {
|
|||||||
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func setupFooter() {
|
||||||
|
footerLabel.text = NSLocalizedString("Sign in to your Feed Wrangler account and sync your subscriptions across your devices. Your username and password will be encrypted and stored in Keychain.\n\nDon't have a Feed Wrangler account?", comment: "Feed Wrangler")
|
||||||
|
}
|
||||||
|
|
||||||
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||||
return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section)
|
return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section)
|
||||||
}
|
}
|
||||||
|
@ -20,12 +20,14 @@ class FeedbinAccountViewController: UITableViewController {
|
|||||||
@IBOutlet weak var passwordTextField: UITextField!
|
@IBOutlet weak var passwordTextField: UITextField!
|
||||||
@IBOutlet weak var showHideButton: UIButton!
|
@IBOutlet weak var showHideButton: UIButton!
|
||||||
@IBOutlet weak var actionButton: UIButton!
|
@IBOutlet weak var actionButton: UIButton!
|
||||||
|
@IBOutlet weak var footerLabel: UILabel!
|
||||||
|
|
||||||
weak var account: Account?
|
weak var account: Account?
|
||||||
weak var delegate: AddAccountDismissDelegate?
|
weak var delegate: AddAccountDismissDelegate?
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
setupFooter()
|
||||||
|
|
||||||
activityIndicator.isHidden = true
|
activityIndicator.isHidden = true
|
||||||
emailTextField.delegate = self
|
emailTextField.delegate = self
|
||||||
@ -46,6 +48,10 @@ class FeedbinAccountViewController: UITableViewController {
|
|||||||
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func setupFooter() {
|
||||||
|
footerLabel.text = NSLocalizedString("Sign in to your Feedbin account and sync your subscriptions across your devices. Your username and password will be encrypted and stored in Keychain.\n\nDon't have a Feedbin account?", comment: "Feedbin")
|
||||||
|
}
|
||||||
|
|
||||||
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||||
return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section)
|
return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section)
|
||||||
}
|
}
|
||||||
|
@ -12,17 +12,22 @@ import Account
|
|||||||
class LocalAccountViewController: UITableViewController {
|
class LocalAccountViewController: UITableViewController {
|
||||||
|
|
||||||
@IBOutlet weak var nameTextField: UITextField!
|
@IBOutlet weak var nameTextField: UITextField!
|
||||||
|
@IBOutlet weak var footerLabel: UILabel!
|
||||||
|
|
||||||
weak var delegate: AddAccountDismissDelegate?
|
weak var delegate: AddAccountDismissDelegate?
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
setupFooter()
|
||||||
navigationItem.title = Account.defaultLocalAccountName
|
navigationItem.title = Account.defaultLocalAccountName
|
||||||
nameTextField.delegate = self
|
nameTextField.delegate = self
|
||||||
|
|
||||||
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func setupFooter() {
|
||||||
|
footerLabel.text = NSLocalizedString("Local accounts do not sync your subscriptions across devices.", comment: "Local")
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func cancel(_ sender: Any) {
|
@IBAction func cancel(_ sender: Any) {
|
||||||
dismiss(animated: true, completion: nil)
|
dismiss(animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
|
@ -20,13 +20,14 @@ class NewsBlurAccountViewController: UITableViewController {
|
|||||||
@IBOutlet weak var passwordTextField: UITextField!
|
@IBOutlet weak var passwordTextField: UITextField!
|
||||||
@IBOutlet weak var showHideButton: UIButton!
|
@IBOutlet weak var showHideButton: UIButton!
|
||||||
@IBOutlet weak var actionButton: UIButton!
|
@IBOutlet weak var actionButton: UIButton!
|
||||||
|
@IBOutlet weak var footerLabel: UILabel!
|
||||||
|
|
||||||
weak var account: Account?
|
weak var account: Account?
|
||||||
weak var delegate: AddAccountDismissDelegate?
|
weak var delegate: AddAccountDismissDelegate?
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
setupFooter()
|
||||||
activityIndicator.isHidden = true
|
activityIndicator.isHidden = true
|
||||||
usernameTextField.delegate = self
|
usernameTextField.delegate = self
|
||||||
passwordTextField.delegate = self
|
passwordTextField.delegate = self
|
||||||
@ -46,6 +47,10 @@ class NewsBlurAccountViewController: UITableViewController {
|
|||||||
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
tableView.register(ImageHeaderView.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func setupFooter() {
|
||||||
|
footerLabel.text = NSLocalizedString("Sign in to your NewsBlur account and sync your subscriptions across your devices. Your username and password will be encrypted and stored in Keychain.\n\nDon't have a Feedbin account?", comment: "NewsBlur")
|
||||||
|
}
|
||||||
|
|
||||||
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||||
return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section)
|
return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section)
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ class ReaderAPIAccountViewController: UITableViewController {
|
|||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
setupFooter()
|
||||||
|
|
||||||
activityIndicator.isHidden = true
|
activityIndicator.isHidden = true
|
||||||
usernameTextField.delegate = self
|
usernameTextField.delegate = self
|
||||||
@ -60,8 +61,6 @@ class ReaderAPIAccountViewController: UITableViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setupFooter()
|
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(textDidChange(_:)), name: UITextField.textDidChangeNotification, object: usernameTextField)
|
NotificationCenter.default.addObserver(self, selector: #selector(textDidChange(_:)), name: UITextField.textDidChangeNotification, object: usernameTextField)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(textDidChange(_:)), name: UITextField.textDidChangeNotification, object: passwordTextField)
|
NotificationCenter.default.addObserver(self, selector: #selector(textDidChange(_:)), name: UITextField.textDidChangeNotification, object: passwordTextField)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user