Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Fix Just Once text for recurring donors in double buttons and add int…
Browse files Browse the repository at this point in the history
…l to weekly button
  • Loading branch information
venkateshf22 committed Jun 11, 2020
1 parent 331508b commit cca5627
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app/javascript/components/DonateButton.js
Expand Up @@ -18,6 +18,11 @@ export default props => {
}
}

if (props.recurringDonor) {
buttonId = 'fundraiser.donate_amount';
buttonText = 'Donate {amount}';
}

return (
<Button
className="DonateButton"
Expand Down
Expand Up @@ -195,8 +195,8 @@ exports[`Recurring Donors shows one_off button for recurring donors when recurri
/>
 
<FormattedMessage
defaultMessage="Donate {amount} Just Once"
id="fundraiser.donation_once"
defaultMessage="Donate {amount}"
id="fundraiser.donate_amount"
values={
Object {
"amount": <CurrencyAmount
Expand Down
2 changes: 1 addition & 1 deletion config/locales/member_facing.de.yml
Expand Up @@ -130,7 +130,7 @@ de:
donate_amount: "%{amount} spenden"
donation_once: "Einmalig %{amount} spenden"
donation_recurring: "Monatlich %{amount} spenden"
donation_weekly: "Donate %{amount} Weekly"
donation_weekly: "Pro Woche %{amount} spenden"
weekly_donation_fineprint: "To reduce processing fees and make sure your donation has as much impact as possible, weekly donations are processed once per month."
petition:
sign_it: Petition Unterschreiben
Expand Down
2 changes: 1 addition & 1 deletion config/locales/member_facing.es.yml
Expand Up @@ -84,7 +84,7 @@ es:
donate_amount: "Done %{amount}"
donation_once: "Done %{amount} sólo una vez"
donation_recurring: "Done %{amount} cada mes"
donation_weekly: "Donate %{amount} Weekly"
donation_weekly: "Done %{amount} todas las semanas"
weekly_donation_fineprint: "To reduce processing fees and make sure your donation has as much impact as possible, weekly donations are processed once per month."
month: mes
error_intro: 'Lo sentimos. No hemos podido procesar tu donación.'
Expand Down
2 changes: 1 addition & 1 deletion config/locales/member_facing.fr.yml
Expand Up @@ -77,7 +77,7 @@ fr:
donate_amount: "Donnez %{amount}"
donation_once: "Donner %{amount} Une fois"
donation_recurring: "Donner %{amount} Par mois"
donation_weekly: "Donate %{amount} Weekly"
donation_weekly: "Donner %{amount} Par semaine"
weekly_donation_fineprint: "To reduce processing fees and make sure your donation has as much impact as possible, weekly donations are processed once per month."
month: mois
error_intro: 'Votre don n’a pas pu être effectué '
Expand Down

0 comments on commit cca5627

Please sign in to comment.