mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Fix localization (#690)
This commit is contained in:
parent
ec9bc0c69a
commit
baa520e03d
@ -39,7 +39,7 @@ final class MastodonRegisterViewController: UIViewController, NeedsDependency, O
|
||||
}()
|
||||
|
||||
func nextBarButtonItem() -> UIBarButtonItem {
|
||||
return UIBarButtonItem(title: "Next", style: .done, target: self, action: #selector(MastodonRegisterViewController.nextButtonPressed(_:)))
|
||||
return UIBarButtonItem(title: L10n.Common.Controls.Actions.Next, style: .done, target: self, action: #selector(MastodonRegisterViewController.nextButtonPressed(_:)))
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ extension MastodonRegisterViewController {
|
||||
.sink { [weak self] error in
|
||||
guard let self = self else { return }
|
||||
guard let error = error as? Mastodon.API.Error else { return }
|
||||
let alertController = UIAlertController(for: error, title: "Sign Up Failure", preferredStyle: .alert)
|
||||
let alertController = UIAlertController(for: error, title: L10n.Common.Alerts.SignUpFailure.title, preferredStyle: .alert)
|
||||
let okAction = UIAlertAction(title: L10n.Common.Controls.Actions.ok, style: .default, handler: nil)
|
||||
alertController.addAction(okAction)
|
||||
_ = self.coordinator.present(
|
||||
@ -255,5 +255,4 @@ extension MastodonRegisterViewController {
|
||||
}
|
||||
.store(in: &disposeBag)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user