diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index e6fe999102..afea4adc8f 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -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 you’re 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"; diff --git a/SignalServiceKit/src/Payments/DonationReceipt.swift b/SignalServiceKit/src/Payments/DonationReceipt.swift index 296bec8f4f..326e5f1802 100644 --- a/SignalServiceKit/src/Payments/DonationReceipt.swift +++ b/SignalServiceKit/src/Payments/DonationReceipt.swift @@ -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" + ) } }