refactor: Complete strings alignment
This commit is contained in:
@@ -162,8 +162,8 @@ class AlertSimulatorViewController: UIViewController, MKMapViewDelegate {
|
||||
if distance < circleMin.distance || distance > circleMax.distance {
|
||||
let message = distance < circleMin.distance ? "globe_simulation_outside" : "globe_simulation_inside"
|
||||
|
||||
let alert = UIAlertController(title: NSLocalizedString("Attenzione", comment: ""), message: NSLocalizedString(message, comment: ""), preferredStyle: .alert)
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("Ok", comment: ""), style: .cancel, handler: nil))
|
||||
let alert = UIAlertController(title: NSLocalizedString("attention", comment: ""), message: NSLocalizedString(message, comment: ""), preferredStyle: .alert)
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("ok", comment: ""), style: .cancel, handler: nil))
|
||||
present(alert, animated: true)
|
||||
return
|
||||
}
|
||||
@@ -178,8 +178,8 @@ class AlertSimulatorViewController: UIViewController, MKMapViewDelegate {
|
||||
}
|
||||
} failure: { (error) in
|
||||
DispatchQueue.main.async {
|
||||
let alert = UIAlertController(title: NSLocalizedString("Attenzione", comment: ""), message: error?.localizedDescription, preferredStyle: .alert)
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("Ok", comment: ""), style: .cancel, handler: nil))
|
||||
let alert = UIAlertController(title: NSLocalizedString("attention", comment: ""), message: error?.localizedDescription, preferredStyle: .alert)
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("ok", comment: ""), style: .cancel, handler: nil))
|
||||
self.present(alert, animated: true)
|
||||
return
|
||||
}
|
||||
@@ -238,7 +238,7 @@ class AlertSimulatorViewController: UIViewController, MKMapViewDelegate {
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("globe_simulation_priority", comment: ""), style: .default) { (action) in
|
||||
self.navigateToSubscriptions()
|
||||
})
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("Ok", comment: ""), style: .cancel, handler: nil))
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("ok", comment: ""), style: .cancel, handler: nil))
|
||||
present(alert, animated: true)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user