From 4ec87981f23cdc8f455d7a8830145e0eeba82ac9 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 8 Nov 2023 12:14:43 +1300 Subject: [PATCH] Simplify use of word Register --- CRM/Event/Form/Registration/Confirm.php | 3 +-- templates/CRM/Event/Form/Registration/Confirm.tpl | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CRM/Event/Form/Registration/Confirm.php b/CRM/Event/Form/Registration/Confirm.php index 5d84a66b68..3e7a4766ca 100644 --- a/CRM/Event/Form/Registration/Confirm.php +++ b/CRM/Event/Form/Registration/Confirm.php @@ -305,7 +305,6 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { //consider total amount. $this->assign('isAmountzero', $this->_totalAmount <= 0); - $contribButton = ts('Register'); $this->addButtons([ [ 'type' => 'back', @@ -313,7 +312,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration { ], [ 'type' => 'next', - 'name' => $contribButton, + 'name' => ts('Register'), 'isDefault' => TRUE, ], ]); diff --git a/templates/CRM/Event/Form/Registration/Confirm.tpl b/templates/CRM/Event/Form/Registration/Confirm.tpl index a546f2b650..98dddde24b 100644 --- a/templates/CRM/Event/Form/Registration/Confirm.tpl +++ b/templates/CRM/Event/Form/Registration/Confirm.tpl @@ -13,18 +13,19 @@

+ {capture assign=register}{ts}Register{/ts}{/capture} {if $isOnWaitlist} {ts}Please verify your information.{/ts} {ts}If space becomes available you will receive an email with a link to complete your registration.{/ts} - {ts 1=$form.buttons._qf_Confirm_next.html|strip_tags}Click %1 to be added to the WAIT LIST for this event.{/ts} + {ts 1=$register}Click %1 to be added to the WAIT LIST for this event.{/ts} {elseif $isRequireApproval} {ts}Please verify your information.{/ts} {ts}Once approved, you will receive an email with a link to complete the registration process.{/ts} - {ts 1=$form.buttons._qf_Confirm_next.html|strip_tags}Click %1 to submit your registration for approval.{/ts} + {ts 1=$register}Click %1 to submit your registration for approval.{/ts} {else} {ts}Please verify your information.{/ts} {if $contributeMode EQ 'notify' and !$is_pay_later and !$isAmountzero} - {ts 1=$form.buttons._qf_Confirm_next.html|strip_tags 2=$paymentProcessor.frontend_title}Click %1 to checkout with %2.{/ts} + {ts 1=$register 2=$paymentProcessor.frontend_title}Click %1 to checkout with %2.{/ts} {else} - {ts 1=$form.buttons._qf_Confirm_next.html|strip_tags}Click %1 to complete your registration.{/ts} + {ts 1=$register}Click %1 to complete your registration.{/ts} {/if} {/if}

-- 2.25.1