refactor: Complete strings alignment

This commit is contained in:
Andrea Busi
2021-04-09 09:41:13 +02:00
parent 8085afea4f
commit 0504cdbea4
15 changed files with 321 additions and 398 deletions
@@ -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)
}