From 8bec1107e31d564a63b995017fd3b64e2a55f298 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:23:51 +1300 Subject: [PATCH] FIX Change "login" to "log in" when used as a verb (#122) --- lang/en.yml | 1 + src/Authenticator/LoginForm.php | 4 ++-- templates/SilverStripe/RealMe/Authenticator/LoginForm.ss | 4 ++-- .../SilverStripe/RealMe/Authenticator/LoginForm_secondary.ss | 4 ++-- templates/SilverStripe/RealMe/Authenticator/MiniLoginForm.ss | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lang/en.yml b/lang/en.yml index 1dad62a..6df32bf 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -3,6 +3,7 @@ en: ASSERTLOGINBUTTON: 'Share your details with {orgname}' AUTHENTICATOR_NAME: 'RealMe Account' LOGINBUTTON: Login + LOGINBUTTON2: Log in SilverStripe\RealMe\Authenticator\LoginHandler: LOGINFAILURE: 'Unfortunately we''re not able to log you in through RealMe right now. Please try again shortly.' SilverStripe\RealMe\Authenticator\MiniLoginForm: diff --git a/src/Authenticator/LoginForm.php b/src/Authenticator/LoginForm.php index 6388eb9..67b01c5 100644 --- a/src/Authenticator/LoginForm.php +++ b/src/Authenticator/LoginForm.php @@ -202,13 +202,13 @@ protected function getFormActions() } else { // Login button $loginButtonContent = ArrayData::create(array( - 'Label' => _t(self::class . '.LOGINBUTTON', 'Login'), + 'Label' => _t(self::class . '.LOGINBUTTON2', 'Log in'), 'ShowNewWindowIcon' => true ))->renderWith(self::class . '/RealMeLoginButton'); } return FieldList::create(array( - FormAction::create('doLogin', _t(self::class . '.LOGINBUTTON', 'Login')) + FormAction::create('doLogin', _t(self::class . '.LOGINBUTTON2', 'Log in')) ->setUseButtonTag(true) ->setButtonContent($loginButtonContent) ->setAttribute('class', 'realme_button') diff --git a/templates/SilverStripe/RealMe/Authenticator/LoginForm.ss b/templates/SilverStripe/RealMe/Authenticator/LoginForm.ss index 763c985..33acbc0 100644 --- a/templates/SilverStripe/RealMe/Authenticator/LoginForm.ss +++ b/templates/SilverStripe/RealMe/Authenticator/LoginForm.ss @@ -39,11 +39,11 @@ or directly in your css, e.g. .realme_popup {width: 450px} <% end_if %>
-

Login with RealMe

+

Log in with RealMe

To access the $ServiceName1, you need a RealMe login. If you've used a RealMe login somewhere else, you can use - it here too. If you don't already have a username and password, just select Login and choose to create one. + it here too. If you don't already have a username and password, just select "Log in" and choose to create one.

diff --git a/templates/SilverStripe/RealMe/Authenticator/LoginForm_secondary.ss b/templates/SilverStripe/RealMe/Authenticator/LoginForm_secondary.ss index e0b16ed..4e3553d 100644 --- a/templates/SilverStripe/RealMe/Authenticator/LoginForm_secondary.ss +++ b/templates/SilverStripe/RealMe/Authenticator/LoginForm_secondary.ss @@ -40,14 +40,14 @@ or directly in your css, e.g. .realme_popup {width: 450px} "--%>