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
@@ -24,8 +24,8 @@ class SubscriptionsViewController: UITableViewController {
var sectionTitle: String? {
switch self {
case .monthly: return NSLocalizedString("Abbonamenti mensili", comment: "")
case .yearly: return NSLocalizedString("Abbonamenti annuali", comment: "")
case .monthly: return NSLocalizedString("inapp_monthly_subscriptions", comment: "")
case .yearly: return NSLocalizedString("inapp_yearly_subscriptions", comment: "")
default: return nil
}
}
@@ -195,7 +195,7 @@ class SubscriptionsViewController: UITableViewController {
let message = "\(NSLocalizedString("purchase_pro_restore_alert_message", comment: ""))\n\n(\(product))"
let alert = UIAlertController(title: NSLocalizedString("purchase_pro_restore_alert_title", comment: ""),
message: message, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
alert.addAction(UIAlertAction(title: "ok", style: .default, handler: nil))
present(alert, animated: true, completion: nil)
}
@@ -204,9 +204,9 @@ class SubscriptionsViewController: UITableViewController {
}
@objc func handleNoTransactionsNotification(_ notification: Notification) {
let alert = UIAlertController(title: NSLocalizedString("Attenzione", comment: ""),
let alert = UIAlertController(title: NSLocalizedString("attention", comment: ""),
message: NSLocalizedString("purchase_pro_no_subscriptions_alert_message", comment: ""), preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
alert.addAction(UIAlertAction(title: "ok", style: .default, handler: nil))
present(alert, animated: true, completion: nil)
}