From eaee6eeec3efa05615dd541d3258380491380b17 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 6 Oct 2023 10:07:51 +1300 Subject: [PATCH] FIX Change "login" to "log in" when used as a verb --- lang/en.yml | 2 +- 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(+), 8 deletions(-) diff --git a/lang/en.yml b/lang/en.yml index 1dad62a..18a28bd 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -2,7 +2,7 @@ en: SilverStripe\RealMe\Authenticator\LoginForm: ASSERTLOGINBUTTON: 'Share your details with {orgname}' AUTHENTICATOR_NAME: 'RealMe Account' - LOGINBUTTON: Login + LOGINBUTTON: 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..8b65db2 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 . '.LOGINBUTTON', '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 . '.LOGINBUTTON', '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.