Use new copy for donation receipt titles

"Gift" is now "Donation for a Friend".
This commit is contained in:
Evan Hahn 2023-01-10 15:41:32 -06:00
parent b3136fb42c
commit f4530c0438
No known key found for this signature in database
2 changed files with 17 additions and 5 deletions

View File

@ -1939,8 +1939,8 @@
/* Footer text at the bottom of donation receipts */
"DONATION_RECEIPT_FOOTER" = "Thank you for supporting Signal. Your contribution helps fuel the mission of developing open source privacy technology that protects free expression and enables secure global communication for millions around the world. If youre a resident of the United States, please retain this receipt for your tax records. Signal Technology Foundation is a tax-exempt nonprofit organization in the United States under section 501c3 of the Internal Revenue Code. Our Federal Tax ID is 82-4506840.";
/* Title for gift donation receipts */
"DONATION_RECEIPT_GIFT" = "Gift";
/* Title for receipts for donations given on a friend's behalf */
"DONATION_RECEIPT_FOR_DONATION_ON_BEHALF_OF_A_FRIEND" = "Donation for a Friend";
/* Title for one-time donation receipts */
"DONATION_RECEIPT_ONE_TIME" = "One-time";

View File

@ -33,9 +33,21 @@ public final class DonationReceipt: NSObject, SDSCodableModel {
public var localizedName: String {
switch receiptType {
case .boost: return NSLocalizedString("DONATION_RECEIPT_ONE_TIME", comment: "Title for one-time donation receipts")
case .subscription: return NSLocalizedString("DONATION_RECEIPT_RECURRING", comment: "Title for recurring donation receipts")
case .gift: return NSLocalizedString("DONATION_RECEIPT_GIFT", comment: "Title for gift donation receipts")
case .boost:
return NSLocalizedString(
"DONATION_RECEIPT_ONE_TIME",
comment: "Title for one-time donation receipts"
)
case .subscription:
return NSLocalizedString(
"DONATION_RECEIPT_RECURRING",
comment: "Title for recurring donation receipts"
)
case .gift:
return NSLocalizedString(
"DONATION_RECEIPT_FOR_DONATION_ON_BEHALF_OF_A_FRIEND",
comment: "Title for receipts for donations given on a friend's behalf"
)
}
}