From 6f8bd09e237425ee8897a9687f0268373985e65b Mon Sep 17 00:00:00 2001 From: Shane Bill Date: Mon, 28 Nov 2022 15:30:04 -0400 Subject: [PATCH] Adding better translation for ThankYou page tpl for recurring messaging --- .../Contribute/Form/Contribution/ThankYou.tpl | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index 742c6f64d5..f119e135ca 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -120,10 +120,23 @@ {if !empty($auto_renew)} {* Auto-renew membership confirmation *} {crmRegion name="contribution-thankyou-recur-membership"}
- {if $frequency_interval > 1} - {ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts} + {if $installments > 1} + {if $frequency_interval > 1} + {ts 1=$frequency_interval 2=$frequency_unit}This membership will be renewed automatically every %1 %2(s).{/ts} + {else} + {ts 1=$frequency_unit}This membership will be renewed automatically every %1.{/ts} + {/if} {else} - {ts 1=$frequency_unit}This membership will be renewed automatically every %1.{/ts} + {* dev/translation#80 All 'every %1' strings are incorrectly using ts, but focusing on the most important one until we find a better fix. *} + {if $frequency_unit eq 'day'} + {ts}This membership will be renewed automatically every day.{/ts} + {elseif $frequency_unit eq 'week'} + {ts}This membership will be renewed automatically every week.{/ts} + {elseif $frequency_unit eq 'month'} + {ts}This membership will be renewed automatically every month.{/ts} + {elseif $frequency_unit eq 'year'} + {ts}This membership will be renewed automatically every year.{/ts} + {/if} {/if}
({ts}You will receive an email receipt which includes information about how to cancel the auto-renewal option.{/ts})
{/crmRegion} -- 2.25.1