From e100f8703f430ef891e9043134a65bb1c185b245 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 18 Jul 2021 10:56:51 +1000 Subject: [PATCH] [REF] Add in smarty modifier to replcae the upper smarty modifier to better handle umlouts / accents --- CRM/Core/Smarty/plugins/modifier.crmUpper.php | 28 +++++++++++++++++++ templates/CRM/Event/Form/Participant.tpl | 2 +- templates/CRM/Report/Form/Contact/Detail.tpl | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 CRM/Core/Smarty/plugins/modifier.crmUpper.php diff --git a/CRM/Core/Smarty/plugins/modifier.crmUpper.php b/CRM/Core/Smarty/plugins/modifier.crmUpper.php new file mode 100644 index 0000000000..59b1fac10f --- /dev/null +++ b/CRM/Core/Smarty/plugins/modifier.crmUpper.php @@ -0,0 +1,28 @@ + {if !empty($participantMode)}
- {ts 1=$displayName 2=$participantMode|upper}Use this form to submit an event registration on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts} + {ts 1=$displayName 2=$participantMode|crmUpper}Use this form to submit an event registration on behalf of %1. A %2 transaction will be submitted using the selected payment processor.{/ts}
{/if} diff --git a/templates/CRM/Report/Form/Contact/Detail.tpl b/templates/CRM/Report/Form/Contact/Detail.tpl index 00d4fb0835..7dfdeb2eb7 100644 --- a/templates/CRM/Report/Form/Contact/Detail.tpl +++ b/templates/CRM/Report/Form/Contact/Detail.tpl @@ -110,7 +110,7 @@ {assign var=componentContactId value=$row.contactID} {foreach from=$columnHeadersComponent item=pheader key=component} {if $componentRows.$componentContactId.$component} -

{$component|replace:'_civireport':''|upper}

+

{$component|replace:'_civireport':''|crmUpper}

{*add space before headers*} -- 2.25.1