From 409683a72b90a6f598eee409a2287b139c3f590e Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 22 Feb 2021 16:37:31 -0500 Subject: [PATCH] dev/translation#32 Contribution ThankYou: partial fix for recurring units --- .../CRM/Contribute/Form/Contribution/ThankYou.tpl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl index bc238abd49..a8b6de9a84 100644 --- a/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl +++ b/templates/CRM/Contribute/Form/Contribution/ThankYou.tpl @@ -139,7 +139,16 @@ {if $frequency_interval > 1}

{ts 1=$frequency_interval 2=$frequency_unit}This recurring contribution will be automatically processed every %1 %2s.{/ts}

{else} -

{ts 1=$frequency_unit}This recurring contribution will be automatically processed every %1.{/ts}

+ {* dev/translation#32 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 contribution will be automatically processed every day.{/ts}

+ {elseif $frequency_unit eq 'week'} +

{ts}This contribution will be automatically processed every week.{/ts}

+ {elseif $frequency_unit eq 'month'} +

{ts}This contribution will be automatically processed every month.{/ts}

+ {elseif $frequency_unit eq 'year'} +

{ts}This contribution will be automatically processed every year.{/ts}

+ {/if} {/if} {/if}

-- 2.25.1