mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-16 12:52:11 +00:00
Say "Thank you" in donation success alert title
This commit is contained in:
parent
e68c46d729
commit
f2841827fc
@ -133,10 +133,10 @@ class DonationViewController: UITableViewController, TableModelHost {
|
||||
return
|
||||
|
||||
case .success:
|
||||
alert = Macros.alert(title, L10n.Donation.Alerts.Purchase.success)
|
||||
alert = Macros.alert(L10n.Donation.Alerts.Purchase.Success.title, L10n.Donation.Alerts.Purchase.Success.message)
|
||||
|
||||
case .failure:
|
||||
alert = Macros.alert(title, L10n.Donation.Alerts.Purchase.failure(error?.localizedDescription ?? ""))
|
||||
alert = Macros.alert(title, L10n.Donation.Alerts.Purchase.Failure.message(error?.localizedDescription ?? ""))
|
||||
}
|
||||
alert.addCancelAction(L10n.Global.ok)
|
||||
present(alert, animated: true, completion: nil)
|
||||
|
@ -251,8 +251,9 @@
|
||||
"donation.sections.one_time.header" = "One time";
|
||||
"donation.sections.one_time.footer" = "If you want to display gratitude for my free work, here are a couple amounts you can donate instantly.\n\nYou will only be charged once per donation, and you can donate multiple times.";
|
||||
//"donation.sections.recurring.header" = "Recurring";
|
||||
"donation.alerts.purchase.success" = "THANK YOU!\n\nThis means a lot to me and I really hope you keep using and promoting this app.";
|
||||
"donation.alerts.purchase.failure" = "Unable to perform the donation. %@";
|
||||
"donation.alerts.purchase.success.title" = "Thank you";
|
||||
"donation.alerts.purchase.success.message" = "This means a lot to me and I really hope you keep using and promoting this app.";
|
||||
"donation.alerts.purchase.failure.message" = "Unable to perform the donation. %@";
|
||||
|
||||
"share.message" = "Passepartout is an user-friendly, open source OpenVPN client for iOS and macOS";
|
||||
|
||||
|
@ -250,8 +250,9 @@
|
||||
"donation.title" = "Donazione";
|
||||
"donation.sections.one_time.header" = "Unica";
|
||||
"donation.sections.one_time.footer" = "Se vuoi mostrare gratitudine per il mio lavoro a titolo gratuito, qui trovi varie somme da donare all'istante.\n\nLa donazione ti sarà addebitata solo una volta, e puoi effettuare più donazioni.";
|
||||
"donation.alerts.purchase.success" = "GRAZIE!\n\nQuesto significa molto per me e spero vivamente che tu continuoi ad usare e promuovere quest'applicazione.";
|
||||
"donation.alerts.purchase.failure" = "Impossibile effettuare la donazione. %@";
|
||||
"donation.alerts.purchase.success.title" = "Grazie";
|
||||
"donation.alerts.purchase.success.message" = "Questo significa molto per me e spero vivamente che tu continui ad usare e promuovere quest'applicazione.";
|
||||
"donation.alerts.purchase.failure.message" = "Impossibile effettuare la donazione. %@";
|
||||
|
||||
"share.message" = "Passepartout è un client OpenVPN user-friendly ed open source per iOS e macOS";
|
||||
|
||||
|
@ -300,12 +300,18 @@ public enum L10n {
|
||||
public static let title = L10n.tr("Localizable", "donation.title")
|
||||
public enum Alerts {
|
||||
public enum Purchase {
|
||||
/// Unable to perform the donation. %@
|
||||
public static func failure(_ p1: String) -> String {
|
||||
return L10n.tr("Localizable", "donation.alerts.purchase.failure", p1)
|
||||
public enum Failure {
|
||||
/// Unable to perform the donation. %@
|
||||
public static func message(_ p1: String) -> String {
|
||||
return L10n.tr("Localizable", "donation.alerts.purchase.failure.message", p1)
|
||||
}
|
||||
}
|
||||
public enum Success {
|
||||
/// This means a lot to me and I really hope you keep using and promoting this app.
|
||||
public static let message = L10n.tr("Localizable", "donation.alerts.purchase.success.message")
|
||||
/// Thank you
|
||||
public static let title = L10n.tr("Localizable", "donation.alerts.purchase.success.title")
|
||||
}
|
||||
/// THANK YOU!\n\nThis means a lot to me and I really hope you keep using and promoting this app.
|
||||
public static let success = L10n.tr("Localizable", "donation.alerts.purchase.success")
|
||||
}
|
||||
}
|
||||
public enum Sections {
|
||||
|
Loading…
Reference in New Issue
Block a user